Authentication

Generates an API key for the current user. Deprecated in favor of POST /api/auth/api-keys.

Generates, stores, and returns a new API key with the default expiration period for the user currently logged in.

Once created, you can then provide this API key in an Authorization: PL-API-KEY <Key> header in replacement of an X-PL-AUTH header.

get/api/auth/api-key/generate

Request

Query parameters

expireSecondsinteger nullable

Number of seconds until the key expires.

rolestring nullable

Role of the new key.

Response

OK

expirationinteger required

Expiration of the new key.

keystring required

New API key.

Changes

No recorded changes to this operation across all 1 revision of this API.