Start a native link
POST
/api/v1/auth/{provider}/native-link-tickets
const url = 'http://127.0.0.1:8080/api/v1/auth/example/native-link-tickets';const options = { method: 'POST', headers: { Origin: 'example', 'X-CSRF-Token': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"code_challenge":"example","code_challenge_method":"S256"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:8080/api/v1/auth/example/native-link-tickets \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Origin: example' \ --header 'X-CSRF-Token: example' \ --data '{ "code_challenge": "example", "code_challenge_method": "S256" }'Available only when account authentication is enabled. Provider configuration is restart-bound. Local logout does not require an external provider. Responses must not be cached.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”provider
required
string
Header Parameters
Section titled “Header Parameters”Origin
required
string
X-CSRF-Token
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
code_challenge
required
Base64url SHA-256 of the app’s code verifier, without padding. The native entry must present the same challenge.
string
code_challenge_method
required
string
Responses
Section titled “Responses”A one-minute, single-use ticket bound to the current session and the PKCE challenge. Pass it as link_ticket to begin-native-provider-login with the same challenge.
Media typeapplication/json
object
link_ticket
required
string
Examplegenerated
{ "link_ticket": "example"}Structured authentication boundary failure
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer
title
required
string
type
required
string
Examplegenerated
{ "code": "example", "detail": "example", "status": 1, "title": "example", "type": "example"}Structured authentication boundary failure
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer
title
required
string
type
required
string
Examplegenerated
{ "code": "example", "detail": "example", "status": 1, "title": "example", "type": "example"}Structured authentication boundary failure
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer
title
required
string
type
required
string
Examplegenerated
{ "code": "example", "detail": "example", "status": 1, "title": "example", "type": "example"}Structured authentication boundary failure
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer
title
required
string
type
required
string
Examplegenerated
{ "code": "example", "detail": "example", "status": 1, "title": "example", "type": "example"}Structured authentication boundary failure
Media typeapplication/problem+json
object
code
required
string
detail
required
string
status
required
integer
title
required
string
type
required
string
Examplegenerated
{ "code": "example", "detail": "example", "status": 1, "title": "example", "type": "example"}