First-run onboarding status.
GET
/v1/account/onboarding
const url = 'https://api.share2.us/v1/account/onboarding';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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.share2.us/v1/account/onboarding \ --header 'Authorization: Bearer <token>'Whether the user has completed onboarding and still needs to accept the current terms version.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Onboarding status.
Media typeapplication/json
object
onboarded
boolean
consent_required
boolean
consent_version
string
Examplegenerated
{ "onboarded": true, "consent_required": true, "consent_version": "example"}default
Section titled “default”Standard error envelope.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "quota_exceeded" }}