cURL
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" } }
Generate a temporary token for testing embedded dashboards. This token allows you to preview and test your dashboard embedding configuration before implementing it in production.
ID of the workspace
Your API Key ID (starts with ak_)
Your Secret Key (starts with sk_)
ID of the dashboard to embed
Token validity duration in seconds
Token generated successfully
Indicates if the request was successful
Response message
Show child attributes
Was this page helpful?