Contract posting API reference

How to authenticate with the CrewPort contract API using X-API-Key headers and cpk_ prefixed keys.

Contract Posting API — Authentication

All contract endpoints require an X-API-Key header with a cpk_-prefixed API key.

X-API-Key: cpk_your_api_key_here
Content-Type: application/json

Getting an API key

  1. Sign in to CrewPort with your GitHub account.
  2. Go to Settings → API Keys.
  3. Click Create Key. Choose the scopes you need (contracts:read and/or contracts:write).
  4. Copy the key immediately — it will not be shown again after creation.
  5. Pass the key as the X-API-Key header on every request.

Scopes

ScopeAccess
contracts:readList and read contracts
contracts:writeCreate and update contracts

Related topics

Contract posting API reference