Skip to main content
After uploading a contract, use this endpoint to check the status of extraction processes running against it.

Get Contract Processes

Returns the processing status and extraction results for a specific contract.

Request

GET /v1/contracts/{contract_id}/processes

Path Parameters

ParameterTypeRequiredDescription
contract_idstringYesThe staging contract ID returned from the upload endpoint

Query Parameters

ParameterTypeRequiredDefaultDescription
projectIdUUIDYesThe project the contract belongs to

Headers

HeaderRequiredDescription
AuthorizationYesBearer <token> — must be scoped to the requested project

Response

FieldTypeDescription
staging_idintegerThe staging contract identifier
contract_idintegerThe contract ID (available after staging completes)
staging_donebooleanWhether staging (pre-processing) has completed
extraction_donebooleanWhether all extractions have completed
staging_processesobjectStaging stage and info
staging_processes.stagestringCurrent staging stage (queued, processing, completed, failed)
staging_processes.infoobjectStaging check details
extraction_processesobjectExtraction stage and individual extraction statuses
extraction_processes.stagestringOverall extraction stage (pending, processing, completed, failed)
extraction_processes.extractionsarrayList of individual extraction tasks
{
  "data": {
    "staging_id": 456,
    "contract_id": 789,
    "staging_done": true,
    "extraction_done": false,
    "staging_processes": {
      "stage": "completed",
      "info": {}
    },
    "extraction_processes": {
      "stage": "processing",
      "extractions": [
        {
          "name": "extract-royalties",
          "status": "completed",
          "completed_at": "2025-03-01T12:02:30Z"
        },
        {
          "name": "extract-dates",
          "status": "processing",
          "completed_at": null
        }
      ]
    }
  }
}
Process statuses reflect real-time extraction progress. Poll this endpoint to track when all requested extractions have completed. contract_id and extraction_processes are null until staging completes successfully.

Errors

StatusDescription
400Missing or invalid projectId
403Token is not scoped to the requested project
404Contract not found
429Rate limit exceeded

Example

curl "https://api.royaltyport.com/v1/contracts/stg-456/processes?projectId=a1b2c3d4-..." \
  -H "Authorization: Bearer rp_your_token_here"