REST API quickstart
Create the right API key and run a request to publish a roundup, check a URL or send a verified site update.
Publish a public roundup
Share links from one or more sites on one public page. Sign in with email and create a key with roundups:write. This key needs no hostname.
Publish your first roundupCheck or submit your own URLs
Check for crawl issues or send page updates to participating search engines. Verify the exact hostname first. Submission receipts are private.
Set up a verified websitePublish your first roundup
- Send the links and page details
Replace the example links, title, slug and request ID. Include only URLs you have permission to share and set
publicConsenttotrue. - Open the published page
HTTP 201 means your page is live at
publicUrl. SaveremovalTokenprivately so you can manage the batch. The number inpublishedtells you how many links went live.
curl --silent --show-error --fail-with-body "https://crawlsprint.daviddacruz.dev/api/v1/roundups" \
-H "Authorization: Bearer $INDEXMENOW_ROUNDUP_KEY" \
-H "Idempotency-Key: release-resources-example-v1" \
-H "Content-Type: application/json" \
--data '{
"urls": [
"https://example.com/guide/",
"https://example.org/resources/"
],
"publicConsent": true,
"title": "Release resources",
"slug": "release-resources"
}'{
"published": 2,
"publicUrl": "https://crawlsprint.daviddacruz.dev/p/release-resources",
"title": "Release resources",
"removalToken": "[private removal key]",
"receiptEmail": "sent"
}Use up to 100 public URLs per roundup. Omit title or slug for generated values. Custom titles are unique regardless of case and allow up to 90 characters. Custom slugs are unique, with 3–64 letters or numbers separated by single hyphens.
Use description for the visible summary and search and social metadata, up to 320 characters. Set imageUrl to a public HTTPS JPEG, PNG or WebP up to 5 MB, 4,096 pixels per side and 12 megapixels. Leave private links, access tokens and signatures out of the request.
Schedule a release
Add schedule.publishAt as a future UTC timestamp ending in Z. Add schedule.dailyLimit to split the links into releases 24 hours apart. Every release must fit within 30 days. For a multi-page schedule, omit custom page details and edit each page after it goes live.
HTTP 202 with scheduled and releases means the schedule was saved. Each release shows its planned time, URL and link count. HTTP 202 with status: "running" means the original request is still being processed. Retry the same request to read its result.
The page or schedule can be saved while receiptEmail is queued. Use the returned publicUrl and keep the removal key from the response. Retrying the original request with the same key retrieves the existing receipt.
Verify a website for checks and submissions
- Add the hostname your pages use
Go to Websites. Add
example.comandwww.example.comseparately if you work with both. - Host and verify the file
Download the verification file and serve it at the HTTPS address shown in Websites. Keep the name and contents as issued. CrawlSprint checks it again before sending each batch.
- Create a key for that hostname
Open API keys and select the verified hostname. Choose Check public URLs for checks and Submit URLs to send updates or removals. Store the key as
INDEXMENOW_SITE_KEY.
Check and submit verified-site URLs
Replace the example URL with a page on the key’s verified hostname. Run POST /api/v1/checks first and read results. A result with ready: true is eligible to send.
curl --silent --show-error --fail-with-body "https://crawlsprint.daviddacruz.dev/api/v1/checks" \
-H "Authorization: Bearer $INDEXMENOW_SITE_KEY" \
-H "Content-Type: application/json" \
--data '{
"urls": [
"https://example.com/services/"
]
}'{
"results": [
{
"url": "https://example.com/services/",
"httpStatus": 200,
"finalUrl": "https://example.com/services/",
"redirects": 0,
"noindex": false,
"canonical": "https://example.com/services/",
"outcome": "ok",
"ready": true
}
]
}Submit the final URL once it returns HTTP 200–203 directly, has no noindex directive, and either has no canonical or declares itself. Redirects, invalid canonicals and incomplete page metadata need review. CrawlSprint checks the URLs and website file again before sending the batch.
curl --silent --show-error --fail-with-body "https://crawlsprint.daviddacruz.dev/api/v1/submissions" \
-H "Authorization: Bearer $INDEXMENOW_SITE_KEY" \
-H "Idempotency-Key: services-update-example-v1" \
-H "Content-Type: application/json" \
--data '{
"urls": [
"https://example.com/services/"
],
"operation": "update"
}'curl --silent --show-error --fail-with-body "https://crawlsprint.daviddacruz.dev/api/v1/submissions/$RECEIPT_ID" \ -H "Authorization: Bearer $INDEXMENOW_SITE_KEY"
Save id from the submission response and set RECEIPT_ID to that value to read it later. A receipt with status: "accepted" confirms the notification reached the search engine. Check the search engine’s own reporting tools to confirm crawl or indexing.
Send deleted URLs from your website
Use the same submission endpoint and include operation: "remove". Every URL must return HTTP 404 or 410 directly on the verified hostname. Give this removal batch its own idempotency key and read the receipt to confirm delivery.
curl --silent --show-error --fail-with-body "https://crawlsprint.daviddacruz.dev/api/v1/submissions" \
-H "Authorization: Bearer $INDEXMENOW_SITE_KEY" \
-H "Idempotency-Key: old-page-removal-example-v1" \
-H "Content-Type: application/json" \
--data '{
"operation": "remove",
"urls": [
"https://example.com/old-page/"
]
}'Keys, permissions and safe retries
- Send an API key in the
Authorization: Bearerheader. Copy it when you create it. To rotate it, create a replacement, update your integration and revoke the old key. roundups:writepublishes and schedules public roundups, reads and edits roundups you own, and submits link reports.checks:readandsubmissions:writeapply to the exact verified hostname selected for the key.- Use a new
Idempotency-Keyfor each write. It must be 8–128 letters, numbers, periods, underscores, colons or hyphens. After a timeout, retry with the original credential, key and payload. Use a new key when the payload changes. - Use
GET /api/v1/usagewith either key to read your account’s allowance. To list or read private receipts, use a verified-site key with a check or submit permission.
Edit a published roundup
Set ROUNDUP_SLUG to the last segment of the public URL. Read the roundup with an API key from its owner’s account and copy the returned revision, including null if it has never been edited.
curl --silent --show-error --fail-with-body "https://crawlsprint.daviddacruz.dev/api/v1/roundups/$ROUNDUP_SLUG" \ -H "Authorization: Bearer $INDEXMENOW_ROUNDUP_KEY"
{
"revision": null,
"resourceNames": [
{
"url": "https://example.com/guide/",
"name": "Release checklist"
}
]
}Copy the JSON into roundup-edit.json and replace the revision and URL with values from your read response. Set INDEXMENOW_REQUEST_ID to a unique key for the edit.
curl --silent --show-error --fail-with-body -X PATCH "https://crawlsprint.daviddacruz.dev/api/v1/roundups/$ROUNDUP_SLUG" \ -H "Authorization: Bearer $INDEXMENOW_ROUNDUP_KEY" \ -H "Idempotency-Key: $INDEXMENOW_REQUEST_ID" \ -H "Content-Type: application/json" \ --data @roundup-edit.json
- Send the full replacement
urlslist andpublicConsent: truewhen changing links. UseresourceNameswith exact URLs andname: nullto restore an automatic link name. - Omit a field to keep it. Use an empty string to restore the default title, slug, description or image. Description and image also accept
null. updatedmeans the change was saved and the page timestamp was refreshed.unchangedmeans the supplied fields already matched. Previous slugs redirect to the current address.- On
409 roundup_changed, read the current revision and resubmit your changes with a new idempotency key.
Report one link for removal
Use a roundup API key and send slug, zero-based position and reason to POST /api/v1/link-reports with a new idempotency key. Find the position in the link’s Request removal URL. Set includeReplyEmail: true if the moderator may contact your account email. A report requests review.
Check a schedule or withdraw a batch
Use the last path segment of the first roundup URL as id. Use the receipt’s private removal key as the bearer credential.
POST /api/schedule-status lists releases and their status. POST /api/unpublish withdraws the published pages and cancels any pending releases.
curl --silent --show-error --fail-with-body "https://crawlsprint.daviddacruz.dev/api/unpublish" \
-H "Authorization: Bearer $INDEXMENOW_ROUNDUP_REMOVAL_KEY" \
-H "Content-Type: application/json" \
--data '{
"id": "release-resources"
}'Endpoint reference
Verified-site endpoints
- POST
/api/v1/checksCheck up to 10 URLs on one verified hostname. Requires checks:read. - POST
/api/v1/submissionsSend up to 100 updated or removed URLs. Requires submissions:write and an idempotency key. - GET
/api/v1/submissionsList up to 40 recent receipts for the key’s hostname. - GET
/api/v1/submissions/{id}Read a private receipt by ID. - GET
/api/v1/usageRead the account’s remaining URL allowance.
Public roundup endpoints
- POST
/api/v1/roundupsPublish or schedule a public page of links. - GET
/api/v1/roundups/{slug}Read a roundup you own, including its current revision. - PATCH
/api/v1/roundups/{slug}Edit a roundup you own. - POST
/api/v1/link-reportsSend an individual link report to the moderator. - POST
/api/schedule-statusCheck a schedule with the private removal key. - POST
/api/unpublishWithdraw a batch with the private removal key.