Skip to content
Pitch2SaleDevelopers
Open the app
Early access: these pages are being written and reviewed. Facts in the header boxes come straight from the product.

Exchange the refresh cookie for a new access token

POST
/api/v1/auth/refresh
curl --request POST \
--url https://api.pitch2sale.com/api/v1/auth/refresh

Reads the refresh-token cookie (no body), rotates it and returns a new access token. While an admin is impersonating a user, the impersonated session is refreshed.

A new access token

Media typeapplication/json
object
accessToken
required
string
key
additional properties
any
Examplegenerated
{
"accessToken": "example"
}

Rate limit exceeded

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}