Refresh an Authentication Token (API V2 only)

post/token/refresh

Retrieves a new access token, token type, the refresh token, and expiration time.

Securitybasic or X-PriceFx-jwt
Request
header Parameters
Pricefx-Key
required
string

The Pricefx API key. Contact Pricefx Support to get your Pricefx-Key.

Request Body schema: application/json

Provide the referesh token.

refresh-token
string
Responses
200

Login was successful. The response contains the access token, token type and the refresh token.

Response Schema: application/json
access-token
required
string non-empty
refresh-token
required
string non-empty
token-type
required
string non-empty
expires-in
required
number
400

The request was malformed.

401

Unauthorized - the login credentials were incorrect.

403

Forbidden - The request did not contain a valid Pricefx-Key, the provided credentials in body were incorrect, the user was banned or not found or device registration required.

Request samples
application/json
{
  • "refresh-token": "string"
}
Response samples
application/json
{
  • "access-token": "string",
  • "refresh-token": "string",
  • "token-type": "string",
  • "expires-in": 0
}