Troubleshoot prefix validation
Last updated Apr 16, 2026 1. Use the Prefix Details endpoint to check if any issues were found during validation.<details><summary>
Required API token permissions</summary>
At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required: - <code>Magic Transit Read</code> - <code>Magic Transit Write</code> - <code>IP Prefixes: Write</code> - <code>IP Prefixes: Read</code> - <code>IP Prefixes: BGP On Demand Write</code> - <code>IP Prefixes: BGP On Demand Read</code></details>
Prefix Detailsbash
bash
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/addressing/prefixes/$PREFIX_ID" \
--request GET \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
Responsejson
json
"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 trigger the validation checks.<details><summary>
Required API token permissions</summary>
At least one of the following <a href="https://developers.cloudflare.com/fundamentals/api/reference/permissions/">token permissions</a> is required: - <code>Magic Transit Write</code> - <code>IP Prefixes: Write</code></details>
Validate Prefixbash
bash
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/addressing/prefixes/$PREFIX_ID/validate" \
--request POST \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/byoip/troubleshooting/prefix-validation/#page","headline":"Troubleshoot prefix validation","description":"Resolve prefix validation errors during BYOIP onboarding.","url":"https://developers.cloudflare.com/byoip/troubleshooting/prefix-validation/","inLanguage":"en","image":"https://developers.cloudflare.com/byoip/troubleshooting/prefix-validation/og.png?v=7aa8c8eda5466ca4","dateModified":"2026-04-16","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Definitions for terms used across BYOIP documentation. title: Glossary image: https://developers.cloudflare.com/byoip/glossary/og.png?v=093df182db48c231
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/byoip/llms.txt
Use this file to discover all available pages before exploring further.
Docs