Account

Generate a new opn_ API key

Generates a new long-lived opn_ API key. Full key returned once only — store it securely. Subsequent calls show opn_abc123*** preview only. Maximum 5 active keys. Essential plan required.

post/account/api-keys

Request

  • Base URL: https://opnplatform.com/api
  • URL: https://opnplatform.com/api/account/api-keys
  • Auth: HTTP bearer

Request body

labelstring

Example request

{
  "label": "production-erp"
}

Response

API key created — full key shown once

api_keystring

Full key — store securely, shown once

created_atstring date-time
key_previewstring
labelstring nullable

Example response

{
  "api_key": "opn_a1b2c3d4e5f6g7h8i9j0",
  "key_preview": "opn_a1b2c3***"
}

Changes

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