Skip to main content
All requests use a single endpoint: POST https://api.helpgenie.ai/v1 with resource: "profiles".

Access control

Admin endpoints require a role starting with internal_ (e.g. internal_admin). Non-admin users attempting admin-only actions receive a 403 Forbidden response.

role values

Profile mutations (create, update, delete) are automatically logged to the activities table as user_action events. Update actions include the list of changed fields in the activity metadata.

List all profiles (admin)

Retrieves all profiles with complete joined data including subscriptions, call purchases, and phone subscriptions.
string
required
Must be "profiles"
string
required
Must be "all"
object

Response

boolean
object

List basic profiles (admin)

Retrieves a paginated list of profiles with basic fields only, optimized for lists and dropdowns.
string
required
Must be "profiles"
string
required
Must be "list"
object

Response

boolean
object

Get a profile

Retrieves a single profile with complete details including subscriptions and team data. Users can only access their own profile; admins can access any profile.
string
required
Must be "profiles"
string
required
Must be "get"
string
required
The profile ID (user UUID).

Response

boolean
object

Create a profile (admin)

Creates a new user profile. The id must match an existing auth user UUID.
string
required
Must be "profiles"
string
required
Must be "create"
object
required

Response (status 201)

boolean
object

Update a profile

Updates an existing profile. Users can only update their own profile; admins can update any profile. This is a partial update — only include the fields you want to change.
string
required
Must be "profiles"
string
required
Must be "update"
string
required
The profile ID (user UUID).
object
required
Any combination of profile fields. See the create action for the full list of fields (all fields except id are accepted).

Response

boolean
object

Delete a profile

Permanently deletes a profile. Users can only delete their own profile; admins can delete any profile.
string
required
Must be "profiles"
string
required
Must be "delete"
string
required
The profile ID (user UUID).

Response

boolean
object
This permanently deletes the profile record.

Check timezone

Checks the authenticated user’s profile for a timezone value. If the timezone is not set, auto-detects it from the server and saves it to the profile. No-op if timezone is already set.
string
required
Must be "profiles"
string
required
Must be "check-timezone"

Response

boolean
object

Profile object

The full profile object returned by all, get, create, and update actions.

Core fields

string
User UUID.
string | null
string | null
string | null
string | null

Contact information

string | null
string | null

Address

string | null
string | null
string | null
string | null
string | null
string | null
string | null

Company

string | null
string | null

Preferences

string | null
string | null
string | null
string | null

External IDs

string | null
string | null

Marketplace

string | null
boolean | null

Team

number | null
object | null

Subscription

object | null

Call purchases

object[]

Phone subscriptions

object[]

Timestamps

string
string

Generate SSO token

Generates a signed, time-limited SSO token for the authenticated user. The token is used to authenticate the user into connected suite applications without a separate login. When impersonation parameters are provided, the token encodes the target user’s identity alongside the admin’s, allowing the receiving application to establish an impersonated session.
string
required
Must be "profiles"
string
required
Must be "generate-sso-token"
object

Response

boolean
object

Generates a signed, time-limited URL that redirects the user through an OAuth consent flow to authorise a third-party integration. The link is valid for a short window and is tied to the user’s email address. Regular users can only generate a link for their own email. Admins can generate a link for any user’s email.
string
required
Must be "profiles"
string
required
Must be "generate-sync-consent-link"
object
required

Response

boolean
object

Usage summary

Returns a usage summary for the profile (calls, leads, conversations, etc.).
string
required
usage-summary
string
Profile UUID. Defaults to the authenticated user. Admins may pass any profile ID.

Activity logging

Profile mutations are logged to the activities table:

Error responses