POST
/
templates
/
{template_id}
/
embed-token
Generate Embedded Template Token
curl --request POST \
  --url https://api.firma.dev/functions/v1/signing-request-api/templates/{template_id}/embed-token \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "expiration_hours": 24
}'
{
  "token": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "embed_url": "<string>"
}

Authorizations

Authorization
string
header
required

API key for authentication. Format: 'Bearer your-api-key'

Path Parameters

template_id
string<uuid>
required

Body

application/json
expiration_hours
integer
default:24
Required range: 1 <= x <= 168

Response

201 - application/json

Embedded token generated

token
string
expires_at
string<date-time>
embed_url
string<uri>