Troubleshoot prefix validation
- Use the Prefix Details endpoint to check if any issues were found during validation.
Required API token permissions
At least one of the following token permissions
is required:
Magic Transit ReadMagic Transit WriteIP Prefixes: WriteIP Prefixes: ReadIP Prefixes: BGP On Demand WriteIP Prefixes: BGP On Demand Read
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/addressing/prefixes/$PREFIX_ID" \ --request GET \ --header "X-Auth-Email: $CLOUDFLARE_EMAIL" \ --header "X-Auth-Key: $CLOUDFLARE_API_KEY" "result": { "id": "72823e95d6c64d48a8111fec81179816", "created_at": "2025-02-25T00:34:11.423722Z", "modified_at": "2025-02-25T00:34:11.423722Z", "cidr": "203.0.113.0/24", "account_id": "654c5f71c324478cc9f68d60065d4620", "description": "", "approved": "P", "on_demand_enabled": false, "on_demand_locked": false, "advertised": null, "advertised_modified_at": null, "loa_document_id": "b9ff4afe312246a8b2e7324d98f40b23", "asn": 13335, "ownership_validation_token": "<OWNERSHIP_VALIDATION_TOKEN>", "delegate_loa_creation" : true, "irr_validation_state": "valid", "rpki_validation_state": "valid", "ownership_validation_state": "missing", }-
Consider the states returned in the API response (for example,
missing,invalid,mismatch_asn) and review your IRR record, ROA, and ownership validation method accordingly.-
Information in the IRR and ROA records should meet the onboarding prerequisites.
-
Ownership validation requires a matching ROA and the correct validation token found in all DNS TXT records or in the IRR record.
-
-
After applying the necessary changes, use the Validate Prefix endpoint to re-trigger the validation checks.
Required API token permissions
At least one of the following token permissions
is required:
Magic Transit WriteIP Prefixes: Write
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/addressing/prefixes/$PREFIX_ID/validate" \ --request POST \ --header "X-Auth-Email: $CLOUDFLARE_EMAIL" \ --header "X-Auth-Key: $CLOUDFLARE_API_KEY"Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark
-