v1

latestOpenAPI 3.1.02026-07-26189891.1 MB
Keys

Create a new key

Create a new key of the type specified by the type parameter. If a name is not supplied, one will be auto generated.

post/v1/config/keys

Query parameters

type'ingestion' | 'service' | 'all' required

The type of key to be created

Request body

namestring

A user friendly name for the key

Example request

{
  "name": "servergroup_0_ingestion"
}

Response

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

idstring

The ID of the key

keystring

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

namestring

A user friendly name for the key

type'ingestion' | 'service'

The type of the key

createdinteger

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

Example response

{
  "id": "629e3f7e62295be60488fb26",
  "key": "7b273eb8adc962f2711ad760730debb0",
  "name": "servergroup_0_ingestion",
  "type": "ingestion",
  "created": 1654538253244
}