Create a JWT
Changed onCreates a short-lived JSON Web Token (JWT) that client-side applications can use to authenticate against the Shippo API without exposing a long-lived API token.
Authenticate this request with either a Shippo API token (Authorization: ShippoToken <API_TOKEN>) or an OAuth bearer token (Authorization: Bearer <OAUTH_BEARER_TOKEN>). Platform accounts can mint a token on behalf of a Managed Shippo Account by setting the SHIPPO-ACCOUNT-ID header.
The returned token is valid for 12 hours. Send it on subsequent requests as Authorization: JWT <JWT_TOKEN>.
Request
- Base URLhttps://api.goshippo.com
- URLhttps://api.goshippo.com/embedded/authz
- Auth
- API key in header Authorization
- or OAuth 2Authorization code: https://goshippo.com/oauth/authorizeToken URL: https://goshippo.com/oauth/access_token
Headers
Optional string used to pick a non-default API version to use. See our API version guide.
Optional. The object ID of a Managed Shippo Account. Platform accounts set this to mint a JWT scoped to one of their managed accounts. Shippo-Account-Id and SHIPPO-ACCOUNT-ID are the same header.
Request body
Example request
{
"scope": "embedded:carriers"
}Response
Success
Example response
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY3QiOnsidXNlcl9pZCI6MTIzNDU2N30sImV4cCI6MTcwMDAwMDAwMCwiaXNfdGVzdCI6dHJ1ZSwib2F1dGhfYXBwX2lkIjoxMDAwMSwib3JpZ2luYWxfYXV0aF9zdHJhdGVneSI6IkpXVEF1dGgiLCJwYXJ0bmVyX25hbWUiOiJleGFtcGxlLXBhcnRuZXIiLCJwbGF0Zm9ybV9pZCI6MTAwMCwidXNlcl9pZCI6MTIzNDU2NywidXNlcl9vYmplY3RfaWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJ1c2VybmFtZSI6InNoaXBwb3RsZUBzaGlwcG8uY29tIn0.EXAMPLE_SIGNATURE_NOT_VALID",
"expiresIn": 1700000000
}Changes
- warning
deleted the
headerrequest parameterSHIPPO-ACCOUNT-ID - info
added the new optional
headerrequest parameterShippo-Account-Id
- warning
- info
endpoint added
- info