Skip to main content
POST
/
api
/
v1
/
embed
/
generate-token
Generate Embed Token
curl --request POST \
  --url https://papermap.ai/api/v1/embed/generate-token \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspace_id": "string",
  "api_key_id": "string",
  "secret_key": "string",
  "dashboard_id": "string",
  "validity_duration": 3600
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "token": "<string>",
    "expires_at": "2023-11-07T05:31:56Z"
  }
}

Body

application/json
workspace_id
string
required

ID of the workspace

api_key_id
string
required

Your API Key ID (starts with ak_)

secret_key
string
required

Your Secret Key (starts with sk_)

dashboard_id
string
required

ID of the dashboard to embed

validity_duration
integer
default:3600

Token validity duration in seconds

Response

Token generated successfully

success
boolean

Indicates if the request was successful

message
string

Response message

data
object