TravelyfeHelp
DevelopersAPI ReferenceO Auth

Authorize

GET
/oauth/authorize

Starts the authorization code flow with PKCE (S256 only). The traveller signs in to Travelyfe and approves the scopes; they are redirected back with a code.

Query Parameters

client_id*string
redirect_uri*string

Must be registered.

response_type*"code"

Always code.

Value in

  • "code"
scope?string

Space-separated scopes.

state?string
code_challenge*string
code_challenge_method?"S256"

Value in

  • "S256"

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/oauth/authorize?client_id=string&redirect_uri=string&response_type=code&code_challenge=string"
Empty