Create an API Key
You can create mulitple API keys for your organization. All API keys operate on either Live or Test modes.
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"
}
}