Create a JWT
Changed onReturns a JWT for authenticating client-side SDKs such as the Inbox. You supply the scope and an expires_in duration, both required.
Request
- Base URLhttps://api.courier.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Changes
- info
api tag
Authenticationadded - info
api tag
AuthTokensremoved
- info
- breaking
removed the enum value
inbox:read:messagesof the request property - breaking
removed the enum value
inbox:write:eventof the request property - breaking
removed the enum value
inbox:write:eventsof the request property - breaking
removed the enum value
inbox:write:messagesof the request property - breaking
removed the enum value
read:brandsof the request property - breaking
removed the enum value
read:brands{:id}of the request property - breaking
removed the enum value
read:preferencesof the request property - breaking
removed the enum value
read:user-tokensof the request property - breaking
removed the enum value
user_id:$YOUR_USER_IDof the request property - breaking
removed the enum value
write:brandsof the request property - breaking
removed the enum value
write:brands{:id}of the request property - breaking
removed the enum value
write:preferencesof the request property - breaking
removed the enum value
write:trackof the request property - breaking
removed the enum value
write:user-tokensof the request property - info
the response property
became required for the status
- breaking