Approve a mobile PKCE authorization request in the first-party browser
GET
/v1/mobile/authorize
const url = 'https://api.vocapable.com/v1/mobile/authorize?client_id=vocapable-mobile&response_type=code&redirect_uri=example&code_challenge=example&code_challenge_method=S256&installation_id=example&platform=ios&state=example';const options = { method: 'GET', headers: {cookie: '__Host-vcp-session=<__Host-vcp-session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.vocapable.com/v1/mobile/authorize?client_id=vocapable-mobile&response_type=code&redirect_uri=example&code_challenge=example&code_challenge_method=S256&installation_id=example&platform=ios&state=example' \ --cookie __Host-vcp-session=<__Host-vcp-session>Issue a one-use code or show a workspace chooser for the signed-in account.
Browser login navigation belongs to the first-party portal bridge. This code-issuing
endpoint stays native-cookie-only: an absent, stale, or forged browser session receives
the normal opaque 401 from :class:NativeVerifiedDashboard, never a portal redirect or
a weaker bearer-token fallback.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”client_id
Client Id
string
response_type
Response Type
string
redirect_uri
required
Redirect Uri
string
code_challenge
required
Code Challenge
string
code_challenge_method
Code Challenge Method
string
installation_id
required
Installation Id
string
platform
required
Platform
string
state
required
State
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}