List a site's pages
The pages of a site resource, sorted by address, with their state and why a page failed when it did. counts covers every page of the site; filter with status (for instance failed) and paginate with cursor. Up to 5,000 pages.
GET/v1/resources/{resource_id}/pages
Requires resources:read.
Pages come sorted by address. counts covers every page of the site, whatever the filter. Filter with status (ready, busy or failed) and pass next_cursor back as cursor while there are more. The list holds up to 5,000 pages.
Use it to find out why a site imported fewer pages than expected. Read the detail of a failed page, then retry the failed pages.
Authorizations
Authorizationbearerin headerrequiredPath parameters
resource_idstringrequiredpattern: ^res_[abcdefghjkmnpqrstuvwxyz23456789]{12}$Query parameters
limitintegerrange: 1–100Number of items to return. Values outside 1-100 are clamped, and the response reports the limit actually applied.
cursorstringpattern: ^doc_[abcdefghjkmnpqrstuvwxyz23456789]{12}$Pass next_cursor from the previous page, unchanged.
statusenum<string>one of: ready, busy, failedOnly pages in this state. busy is every page being read.
Response
List a site's pages
dataobjectrequiredrequest_idstringrequiredPossible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked, invalid_access_key
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required, permission_denied
errorobjectrequiredrequest_idstringrequiredPossible codes: resource_not_found
errorobjectrequiredrequest_idstringrequiredPossible codes: conflict, assistant_has_no_resources
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequired