Skip to main content
POST
/
auth
/
bootstrap
Exchange a setup token for a platform API key
curl --request POST \
  --url https://api.openfiskal.com/v1/auth/bootstrap \
  --header 'Content-Type: application/json' \
  --data '
{
  "setup_token": "ofk_setup_abc123def456",
  "label": "Production"
}
'
{
  "object": "<string>",
  "id": "key_01HXYZ",
  "api_key": "ofk_platform_live_abc123...",
  "label": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Body

application/json
setup_token
string
required

One-time setup token received via email from OpenFiskal after partnership agreement. Prefixed with ofk_setup_.

Example:

"ofk_setup_abc123def456"

label
string

Human-readable label for the credential being created

Example:

"Production"

Response

Platform API key issued

object
string
Allowed value: "platform_api_key"
id
string
Example:

"key_01HXYZ"

api_key
string

Returned once only. Store immediately in a secrets manager — it cannot be retrieved again.

Example:

"ofk_platform_live_abc123..."

label
string
created_at
string<date-time>