Skip to main content
POST
/
atlas
/
directory
/
counterparties
Propose a trusted counterparty
curl --request POST \
  --url https://api.anchorage-staging.com/v2/atlas/directory/counterparties \
  --header 'Api-Access-Key: <api-key>' \
  --header 'Api-Signature: <api-signature>' \
  --header 'Api-Timestamp: <api-timestamp>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "counterpartyId": "<string>",
  "idempotentId": "<string>",
  "participantId": "<string>",
  "description": "<string>"
}
'
{
  "message": "Missing required field 'amount'."
}

Authorizations

Api-Access-Key
string
header
required

An API key associated with a security role

Headers

Api-Signature
string
required

A hex-encoded Ed25519 signature of timestamp_epoch_seconds + uppercase(http_method) + request_path + request_body.

Construction example:

toHex(
ed25519Sign(
signing_key,
'{}{}{}{}'.format(timestamp_epoch_seconds, toUpper(httpMethod), httpRequestPath, httpBody)
)
)
Pattern: ^[0-9A-Fa-f]{128,160}$
Api-Timestamp
integer<int64>
required

Current timestamp, represented as unix epoch seconds

Body

application/json

Trusted counterparty proposal

counterpartyId
string
required
idempotentId
string
required
Maximum string length: 128
participantId
string
required
description
string

Response