Project

Create an API key (shown once)

POST
/v1/api-keys

Authorization

projectKey
headerAuthorizationBearer <token>

A project API key (sk_live_…) with read, enroll or admin scope.

Request Body

application/json
  1. body
name*string
Length1 <= length <= 80
scopes*array<>
Items1 <= items

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X POST 'http://localhost:8080/v1/api-keys' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "scopes": [    "read"  ]}'
{  "success": true,  "data": {    "key": {      "id": "string",      "name": "string",      "prefix": "string",      "scopes": [        "read"      ],      "created_at": "2019-08-24T14:15:22Z"    },    "api_key": "string"  },  "meta": {    "request_id": "string"  }}