Skip to content

Create a new API key

Request

Handle creation of a new API key.

Security
Api-Key
Body
namestring, <= 50 characters

A free-form name for the API key. Need not be unique. 50 characters max.

curl -i -X POST \
  https://api-v2.forager.ai/api/api_keys/ \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE' \
  -d '{
    "name": "string"
  }'

Responses

Bodyapplication/json
prefixstringread-onlyrequired
createdstring, (date-time)read-onlyrequired
namestring, <= 50 characters

A free-form name for the API key. Need not be unique. 50 characters max.

Response
{ "prefix": "string", "created": "2019-08-24T14:15:22Z", "name": "string" }