Skip to content

Session

Operations related to exchanging credentials for an API key.

Exchange credentials for an API key

Request

Exchanges a store's client_id and client_secret for its API key, which can then be used as the Bearer token for authenticated requests.

Security
ApiKey
Bodyapplication/vnd.api+json

The store credentials to exchange.

dataobject
curl -i -X POST \
  https://docs.xmoney.com/_mock/crypto_api/reference/stores/session \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/vnd.api+json' \
  -d '{}'

Responses

The store API key.

Bodyapplication/vnd.api+json
dataobject
Response
{ "data": { "type": "session", "id": "string", "attributes": { … } } }