API keys

Create API key

Creates an API key for you in this workspace. plain_token is the key: it is shown only in this response, so store it now. With expires_at, the key stops working at the end of that day (UTC); without it, it never expires.

post/api-keys

Request

  • Base URL: https://app.trypost.it/api
  • URL: https://app.trypost.it/api/api-keys
  • Auth: HTTP bearer

Request body

namestring required
expires_atstring date nullable

Last day the key works, today or later.

Response

The created key and its secret.

plain_tokenstring

The key to send as Authorization: Bearer <key>. Shown once.

Example response

{
  "token": {
    "last_used_at": "2026-10-08T13:00:00+00:00",
    "expires_at": "2026-12-31T23:59:59+00:00",
    "created_at": "2026-10-08T12:00:00+00:00"
  }
}

Changes

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