Create an API Key

POST /api_keys

You can create mulitple API keys for your organization. All API keys operate on either Live or Test modes.

Headers

  • Authorization string Required

    Authorize your API calls with an Arta API token

application/json

Body

  • api_key object
    Hide api_key attribute Show api_key attribute
    • is_testing boolean

      Whether this API Key should operate in Live or Test mode.

      Default value is false.

Responses

POST /api_keys
curl \
 -X POST https://api.arta.io/api_keys \
 -H "Content-Type: application/json" \
 -H "Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y" \
 -d '{"api_key":{"is_testing":true}}'
Request examples
# Headers
Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y

# Payload
{
  "api_key": {
    "is_testing": true
  }
}
Response examples (201)
{
  "id": 42,
  "token": "a8dG3tcspo9dinqePjcQ0Rqp",
  "created_at": "2020-10-15T19:50:02.914779",
  "is_testing": true,
  "updated_at": "2020-10-15T19:50:02.914779"
}
Response examples (400)
{
  "errors": {
    "detail": "string"
  }
}