POST
/
v1
/
keys
curl --location --request POST 'https://api.getmetal.io/v1/keys' \
--header 'Content-Type: application/json' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>' \
--data-raw '{
    "name": "My API Key"
}'
{
  "data": {
    "id": "1",
    "name": "My API Key",
    "keyLastFour": "1234",
    "clientId": "1234567890"
  }
}

Auth Headers

x-metal-api-key
string
required

An API key for your org.

x-metal-client-id
string
required

A Client ID for your org.

Body

name
string
required

Name of the Key

Response

data
Key Object