Skip to main content

Getting an API key

Contact your organization admin to create an API key with the intended permissions.

Using an API key

The Anchorage Digital API requires a custom header for authentication, where an API key is passed in as Api-Access-Key.
curl --request GET \
  --url https://api.anchorage-staging.com/v2/apikey \
  --header 'Api-Access-Key: <YOUR_API_KEY>'
For particular endpoints that are sensitive, request signing is needed where the timestamp and the signature are passed in as Api-Timestamp and Api-Signature respectively.
curl --request POST \
  --url https://api.anchorage-staging.com/v2/transactions/withdrawal \
  --header 'Api-Access-Key: <YOUR_API_KEY>' \
  --header 'Api-Signature: <API_SIGNATURE>' \
  --header 'Api-Timestamp: <TIMESTAMP>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "1000.00000000",
  "assetType": "BTC",
  "description": "Internal ID: #12838927347",
  "idempotentId": "<SOME_UUID>",
  "useGasStation": true
}
'
Learn more about signing requests in the next section before making these sensitive API calls.