Reject site migration candidate
POST
/v1/api/sites/{site_id}/migrations/candidates/{candidate_id}/rejectReject the candidate; it moves to the dismissed list and can be restored.
- Scope
sites:write- Token
- OAuth access token only
- Role
- Editor, owner or admin
- MCP tool
reject_migration_candidate· preview: MCP write tools are in preview- What scopes, tokens and roles mean →
Request
cURL
curl -X POST "https://api.crawle.io/v1/api/sites/11111111-1111-1111-1111-111111111111/migrations/candidates/1/reject" \
-H "Authorization: Bearer $CRAWLE_ACCESS_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{}'JavaScript
const response = await fetch("https://api.crawle.io/v1/api/sites/11111111-1111-1111-1111-111111111111/migrations/candidates/1/reject", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CRAWLE_ACCESS_TOKEN}`,
"Idempotency-Key": crypto.randomUUID(),
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
const data = await response.json();Python
import os
import uuid
import requests
response = requests.request(
"POST",
"https://api.crawle.io/v1/api/sites/11111111-1111-1111-1111-111111111111/migrations/candidates/1/reject",
headers={
"Authorization": f"Bearer {os.environ['CRAWLE_ACCESS_TOKEN']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={},
)
data = response.json()$CRAWLE_ACCESS_TOKEN- is an OAuth access token from your integration's sign-in.
Idempotency-Key- is a new unique value for each new request.
Response 200JSON
{
"avg_path_similarity": 1.5,
"client_id": "example",
"committed": true,
"completed_at": "2026-01-01T09:00:00Z",
"confidence": 1.5,
"confirmed_at": "2026-01-01T09:00:00Z",
"crawler_candidate_id": 1,
"created_at": "2026-01-01T09:00:00Z",
"details": {},
"effect_results": {},
"evidence_status": "current",
"grace_days": 1,
"grace_ends_at": "2026-01-01T09:00:00Z",
"grace_started_at": "2026-01-01T09:00:00Z",
"id": "example",
"migration_type": "example",
"receipt_id": "example",
"redirect_count": 1,
"redirect_coverage": 1.5,
"redirect_url_denominator": 1,
"rejected_at": "2026-01-01T09:00:00Z",
"replayed": false,
"source_domain": "example.com",
"source_website_id": "example",
"status": "example",
"target_domain": "example.com",
"target_verified": true,
"target_website_id": "example",
"updated_at": "2026-01-01T09:00:00Z"
}Example generated from the API contract.
Parameters
site_idpath · string (uuid)requiredcandidate_idpath · integerrequiredIdempotency-Keyheader · stringrequired- 1–180 characters
Request body
reasonstring or null- up to 500 characters
Response 200
avg_path_similaritynumberrequiredclient_idstringrequiredcompleted_atstring (date-time) or nullrequiredconfidencenumberrequiredconfirmed_atstring (date-time) or nullrequiredcrawler_candidate_idinteger or nullrequiredcreated_atstring (date-time)requireddetailsobject or nullrequiredeffect_resultsobjectrequiredevidence_statusenum or nullrequired- one of "current", "stale"
grace_ends_atstring (date-time) or nullrequiredgrace_started_atstring (date-time) or nullrequiredidstringrequiredmigration_typestringrequiredreceipt_idstringrequiredredirect_countintegerrequiredredirect_coveragenumber or nullrequiredredirect_url_denominatorinteger or nullrequiredrejected_atstring (date-time) or nullrequiredsource_domainstringrequiredsource_website_idstringrequiredstatusstringrequiredtarget_domainstringrequiredtarget_verifiedboolean or nullrequiredtarget_website_idstring or nullrequiredupdated_atstring (date-time)requiredcommittedboolean- default true
grace_daysinteger or null- 1–90
replayedboolean- default false
Errors
401
- When
- Missing, invalid, or expired token.
403
- When
- The token has none of the accepted scopes (
sites:write).
403
- When
- Called with an API key. This endpoint needs an OAuth access token.
403
- When
- The person's workspace role is below editor.
422
- When
- The request did not match the schema.
detaillists each problem.
429
- When
- Rate limited. Wait for
Retry-Afterseconds.
Generated from the API contract at 7e7039b0b, synced October 30, 2026.