Api Keys endpoints

This document contains the endpoints for the Api Keys category.

Creates an api key

/api/v1/auth/api_keys Authorized
Role: SUPER_USER Claim: CREATE_API_KEY Claim: LIST

This endpoint creates an api key

This endpoint will create an api key in the system

API Keys are used to authenticate with the system from external applications

How are they different from a user?

A user normally has a password and is used to authenticate with the system An api key is used to authenticate with the system from an external application

Headers
Name Type Required Description
x-filter header optional Filter entities
Parameters
Name Type In Required Description
apiKey object body optional Body
Schema
{
  "created_at": "string",
  "key": "string",
  "name": "string",
  "revoked": "bool",
  "revoked_at": "string",
  "secret": "string",
  "updated_at": "string"
}

Gets all the api keys

/api/v1/auth/api_keys Authorized
Claim: LIST_API_KEY

This endpoint returns all the api keys

Deletes an api key

/api/v1/auth/api_keys/{id} Authorized
Claim: DELETE_API_KEY

This endpoint deletes an api key

Parameters
Name Type In Required Description
id string path required Api Key ID

Gets an api key by id or name

/api/v1/auth/api_keys/{id} Authorized
Claim: LIST_API_KEY

This endpoint returns an api key by id or name

Parameters
Name Type In Required Description
id string path required Api Key ID

Revoke an api key

/api/v1/auth/api_keys/{id}/revoke Authorized
Role: SUPER_USER Claim: LIST_API_KEY Claim: DELETE_API_KEY

This endpoint revokes an api key

Parameters
Name Type In Required Description
id string path required Api Key ID