Generates a single-use ticket that can be used within 60 seconds to
automatically log the user into the company panel matching the token.
Required headers
tokenstring
string
Company token (same as used to issue NF-e)
signstring
string
MD5 signature: MD5(token + path + body + timestamp)
timestampstring
string
Unix timestamp in seconds (5-minute window)
Fields
Field
Required
Type
Description
token
Yes
string
Company token — the same one used in /api/invoice/create. It must be identical to the token header; when they differ, an error is returned. When omitted, the token header is used. An integrator token can be used only when it has exactly one company
language
No
string
UI language: br, en, zh, es, ja, ko. Default: br; any other value is treated as br
page
No
string
Landing page after login. Accepted values: emitir_nfe. Empty, missing or any other value opens the default panel (/company/kanban).
Response fields
successboolean
boolean
true when the ticket was successfully generated
ticketstring
string
Opaque ticket (random, 32 bytes base64url)
redirectUrlstring
string
Full URL where the ERP should redirect the user's browser
expiresInSecondsnumber
number
Validity in seconds (always 60)
expiresAtstring
string
UTC expiration date/time (ISO 8601)
Error Responses
Message
Cause
Informe o token / 请传入token
token was sent neither in the body nor in the header
O token do corpo difere do token do header / 请求体 token 与请求头 token 不一致
The body token differs from the token header (code is AUTH_TOKEN_INVALID)
token inválido / token错误
The token does not exist
Nenhuma empresa vinculada a este token
The token has no company
Este token está vinculado a múltiplas empresas. Envie o token da empresa que deseja acessar.
Integrator token with more than one company — the specific company token must be sent
Conta não encontrada
The platform account of the company does not exist
Rate limit exceeded, please slow down
The call rate limit of the token was exceeded (configured by TF for each integrator)
Examples
# sign = md5(token + path + body + timestamp)
# Template generated from the endpoint path; replace the placeholders
curl -X POST "https://api.tffiscal.com/api/sso/create_ticket" \
-H "Content-Type: application/json" \
-H "token: $TOKEN" \
-H "timestamp: $TIMESTAMP" \
-H "sign: $SIGN" \
-d @body.json