CommonsDB Developer PortalCommonsDB Developer PortalCommonsDB Developer Portal
  • Documentation
  • Declaration API
  • Metadata API
  • Search API
  • Status API
status
    Get declaration processing statusget
Schemas
powered by Zudoku
Status Engine API

status

Endpoint:https://api.commonsdb.org

Declaration processing status operations


Get declaration processing status

GET
https://api.commonsdb.org
/v1/status/{identifier}

Check the processing status of a submitted declaration. Use the cidV1 identifier returned from the /v1/declare endpoint.

Status values:

  • pending - Declaration is queued and being processed
  • success - Declaration was successfully processed and indexed
  • failed - Declaration processing failed (see message for details)

Recommended polling strategy:

  1. Submit declaration via /v1/declare
  2. Use returned cidV1 to poll this endpoint
  3. Poll every 2-5 seconds until status is success or failed
  4. If success, declaration is available via search and metadata APIs

Get declaration processing status › path Parameters

  • identifierstring · required

    CIDv1 identifier of the declaration (returned as cidV1 from the declare endpoint)

Get declaration processing status › Headers

  • Authorizationstring · required

    Bearer token for authentication (e.g., Bearer <your-api-key>)

Get declaration processing status › Responses

Successful operation - Status retrieved

  • identifierstring · required

    The CIDv1 identifier of the declaration

  • statusstring · enum · required

    Current processing status of the declaration:

    • pending: Declaration is in the processing queue
    • success: Declaration was successfully processed and is now searchable
    • failed: Processing failed - see message for error details
    Enum values:
    pending
    success
    failed
  • versionstring · required

    API version

  • messagestring

    Additional information about the status. Contains error details when status is 'failed'.

  • createdAtinteger · int64

    Unix timestamp (milliseconds) when the status record was created (i.e., when declaration was submitted)

  • createdAtDateTimestring

    Human-readable date/time when the status record was created

  • updatedAtinteger · int64

    Unix timestamp (milliseconds) when the status was last updated

  • updatedAtDateTimestring

    Human-readable date/time when the status was last updated

GET /v1/status/{identifier}