TravelyfeHelp
开发者ReferenceO Auth

Authorise

GET
/oauth/authorise

Starts the authorisation code flow with PKCE (S256 only). The traveller signs in to Travelyfe and approves the scopes, then returns to you 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/authorise?client_id=string&redirect_uri=string&response_type=code&code_challenge=string"
Empty