Auth

Accept the current account policy

post/auth/legal-acceptance

Request

  • Base URL: https://app.openpo.st/api/v1
  • URL: https://app.openpo.st/api/v1/auth/legal-acceptance
  • Auth: one of:
    • HTTP bearer
    • API key in cookie openpost_session

Request body

$schemastring uri

A URL to the JSON Schema for this object.

accepted_legalboolean required

Whether the user accepts the current Terms and acknowledges the Privacy Policy

Example request

{
  "$schema": "https://example.com/api/v1/schemas/AcceptAccountPolicyInputBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

avatar_urlstring required

Profile avatar URL

composer_experience'specialized' | 'unified' required

Preferred composer experience

created_atstring date-time required

Account creation time

display_namestring required

User display name

emailstring required

User email address

email_verifiedboolean required

Whether the account email address is verified

has_passwordboolean required

Whether this account has a local password credential

idstring required

User ID

is_adminboolean required

Whether this user can manage instance-level settings

is_managedboolean required

Whether this account was provisioned by an organization identity provider

legal_acceptance_requiredboolean required

Whether the current hosted policy still needs acceptance

legal_accepted_atstring date-time

When the current account policy was accepted

managed_organization_namestring

Organization managing this account

password_usableboolean required

Whether the local password can currently be used for sign-in and sensitive-action reauthentication

privacy_versionstring

Privacy version acknowledged by the user

public_profile_enabledboolean required

Whether the public activity profile is visible

public_profile_visible_fieldsstring[] nullable required

Optional account fields visible while the public profile is enabled

terms_versionstring

Terms version accepted by the user

usernamestring required

Unique public username

Example response

{
  "$schema": "https://example.com/api/v1/schemas/UserProfile.json"
}

Changes

No recorded changes to this operation across all 1 revision of this API.