Overview

The Create an API key API creates an API key. 

You can use the Get Users API to find the user ID.


Sample request

POST https://api.armor.com/users/6/keys


{
  "name": "John's API Key",
  "userId": 6
}

Input

API Call / URLMethod / Type
/users/{id}/keysPOST


 

ParameterDescriptionRequired or optionalTypeExample
user id

The ID of the user

You can use the Get Users API to find the ID of your users.

RequiredInteger6
nameA descriptive name for the API keyRequiredStringJohn's API key



Sample return

StatusResponse
200
{
  "id": "6",
  "apiKey": "00000000-0000-0000-0000-000000000000",
  "name": "John's API key"
}