Skip to content

Exchange token for deal-scoped access

POST
/api/dashboard/token/{deal_id}
curl --request POST \
--url https://example.com/api/dashboard/token/example \
--header 'Authorization: Bearer <token>'

Returns a new access token scoped to the requested deal_id, if the authenticated user owns or has been granted access to that deal.

deal_id
required
Deal Id
string

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}