Skip to main content
POST
Create a new key

Authorizations

Authorization
string
header
required

The primary authentication method for the Mezmo API.

Pass the key in the Authorization header in the format Token <ACCESS TOKEN>. For example:

This key is used for all APIs with the exception of ingest.

Query Parameters

type
enum<string>
required

The type of key to be created

Available options:
ingestion,
service,
all

Body

application/json

Modifiable fields can be set in the request body.

name
string

A user friendly name for the key

Maximum string length: 30
Example:

"servergroup_0_ingestion"

Response

A new key was created successfully! The entire key resource is returned.

id
string

The ID of the key

Example:

"629e3f7e62295be60488fb26"

key
string

A secret key which can be used to authenticate requests to Mezmo.

Example:

"7b273eb8adc962f2711ad760730debb0"

name
string

A user friendly name for the key

Maximum string length: 30
Example:

"servergroup_0_ingestion"

type
enum<string>

The type of the key

Available options:
ingestion,
service
Example:

"ingestion"

created
integer

The time the key was created as a Unix timestamp in milliseconds

Example:

1654538253244