Skip to main content
POST
/
{org}
/
api-keys
Create API key
curl --request POST \
  --url https://staging.depot.mesa.dev/{org}/api-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "scopes": [
    "git:read"
  ]
}
'
{
  "id": "<string>",
  "key": "<string>",
  "name": "<string>",
  "scopes": [
    "<string>"
  ],
  "created_at": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required

Body

application/json
name
string
scopes
enum<string>[]
Available options:
git:read,
git:write,
repo:read,
repo:create,
repo:delete,
admin

Response

API key created

id
string
required
key
string
required
name
string | null
required
scopes
string[]
required
created_at
string
required