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)
# Headers
content-type: application/json
x-arta-request-id: FkBjuxbwLLTx4RoAARkx
# Payload
{
"created_at": "2021-01-21T17:22:08.818747",
"id": 2,
"is_testing": false,
"token": "******************eQ0Rqp",
"updated_at": "2021-01-21T17:22:08.818747"
}
Response examples (400)
# Headers
content-type: application/json
x-arta-request-id: FkBjuxbwLLTx4RoAARkx
# Payload
{
"errors": {
"detail": "string"
}
}