Create API key

Create API key

This endpoint lets you create an API Key.

import requests
response =
    json={"label": "server1 key"},
    headers={"Authorization": "Token APIKEY"})
curl "" \
  -X POST \
  -d "{\"label\": \"server1 key\"}" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token APIKEY"

The above command returns JSON structured like this:

  "id": 1337,
  "key": "abc1234...zzz",
  "label": "server1 key",
  "created_at": "2022-06-14T11:58:10.246406-07:00",
  "updated_at": "2022-06-14T11:58:10.246406-07:00"

HTTP request


Create API key request

labelThe label to assign to this API key. May be duplicate with other labels.