Skip to main content
POST
/
identity
/
consumer-api-keys
Create consumer API key from web session
curl --request POST \
  --url https://api.machines.cash/identity/consumer-api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "ok": true,
  "data": {},
  "summary": "success"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The body is of type object.

Response

Success

consumerApiKey
string

Returned once at creation time.

consumerKeyId
string
keyPrefix
string
walletAddress
string
userId
string | null
scopes
string[]