Browse the help center

Users API endpoints

Endpoint reference for the Users tag (44 endpoints): User management, preferences, and system users

Reference network manager admin

User management, preferences, and system users. 44 endpoints, generated from the OpenAPI spec. Authentication, the response envelope, pagination and error codes are shared by all endpoints — see REST API overview. Parameters marked form go in an application/x-www-form-urlencoded request body.

GET /rest-api/aclrole/list.do

Request examples

Get ACL role list.

No parameters beyond authentication.

Responses: 200 — JSON array of role objects, e.g. [{id: 1, name: ‘publisher’}, …]. Errors follow the shared conventions.

POST /rest-api/additional-entity-fields-configuration/delete.do

Request examples

Delete additional entity field.

ParameterInTypeRequiredDescription
idformintegernoUnique numeric identifier of the additional entity field to delete. If null or not found, the operation succeeds silently.

Responses: 200 — JSON with ‘success: true’ indicating the field was deleted or did not exist. Errors follow the shared conventions.

POST /rest-api/additional-entity-fields-configuration/edit.do

Request examples

Create or edit additional entity field.

ParameterInTypeRequiredDescription
idformintegernoID of the field configuration to edit — omit to create a new one
entityTypeformstringnoEntity type this field applies to (BANNER, CAMPAIGN, PLACEMENT, SITE, ZONE, ADVERTISER) Values: SITE, ZONE, PLACEMENT, ADVERTISER, CAMPAIGN, BANNER.
nameformstringnoMachine-readable field name (e.g., ‘custom_field_1’)
titleformstringnoHuman-readable field title displayed in the UI

Responses: 200 — JSON with ‘success: true’ and the saved field object, or validation errors if input is invalid · 404 — No field with the id sent. Errors follow the shared conventions.

GET /rest-api/additional-entity-fields-configuration/list.do

Request examples

List additional entity fields.

No parameters beyond authentication.

Responses: 200 — SearchResult containing the list of AdditionalEntityField objects in ‘data’ and total count in ‘total’. Errors follow the shared conventions.

GET /rest-api/adunit/list.do

Request examples

Get ad unit list.

No parameters beyond authentication.

Responses: 200 — JSON array of ad unit objects, e.g. [{id, height, width, name, custom}, …]. Errors follow the shared conventions.

GET /rest-api/blocked/entities.do

Request examples

List blocked entities.

No parameters beyond authentication.

Responses: 200 — JSON array of blocked entity target objects with associated entity details. Errors follow the shared conventions.

POST /rest-api/forgot.do

Request examples

Request password reset.

ParameterInTypeRequiredDescription
emailformstringnoEmail address associated with the account

Responses: 200 — Successful operation. Errors follow the shared conventions.

GET /rest-api/notification-settings.do

Request examples

Read your notification settings.

No parameters beyond authentication.

Responses: 200 — {receiveNotificationsByEmail, templates:[{id, title, subscribed}], recipients:[e-mail]}. Errors follow the shared conventions.

POST /rest-api/notification-settings/recipients.do

Request examples

Add a notification recipient.

ParameterInTypeRequiredDescription
emailformstringnoE-mail address to add

Responses: 200 — The settings after the change, in the shape of the GET. Errors follow the shared conventions.

DELETE /rest-api/notification-settings/recipients.do

Request examples

Remove a notification recipient.

ParameterInTypeRequiredDescription
emailformstringyesThe address to remove

Responses: 200 — The settings after the change, in the shape of the GET · 404 — The address is not on the list. Errors follow the shared conventions.

POST /rest-api/notification-settings/subscriptions.do

Request examples

Set your notification subscriptions.

ParameterInTypeRequiredDescription
templateIdsformarray<string>yesIds of the notification events to subscribe to, comma-separated or repeated; empty to unsubscribe from all

Responses: 200 — The settings after the change, in the shape of the GET. Errors follow the shared conventions.

GET /rest-api/referral/getBilling.do

Request examples

Get referral billing.

No parameters beyond authentication.

Responses: 200 — SearchResult containing ‘data’ array of ReferralProgramBilling objects and ‘total’ count. Errors follow the shared conventions.

POST /rest-api/register-user/{key}/{hash}/{timestamp}.do

Request examples

Register a new user.

ParameterInTypeRequiredDescription
keypathstringyesThe network’s public key, as set in its white-label settings.
roleformstringnoLegacy alternative to aclRole: a role name, mapped to the matching stock role. Ignored when aclRole is sent Values: ADMIN, PUBLISHER, ADVERTISER, ADVERTISER_STATISTICS_ACCOUNT, PUBLISHER_STATISTICS_ACCOUNT, NETWORK, CONTACT_US.
aclRoleformintegernoACL role defining user permissions — ID of the acl role
accountUIStyleformstringnoUI layout style preference (TREES, GRIDS) Values: TREES, GRIDS.
commentsformstringnoInternal notes and comments about the user
compactModeformbooleannoCompact UI density preference; null means the client keeps its own default
companyformstringnoCompany name
countryformstringnoTwo-letter country code (ISO 3166-1 alpha-2)
darkThemeformbooleannoDark color theme preference; null means the client keeps its own default
emailformstringnoUser email address (must be unique)
firstNameformstringnoFirst name
lastNameformstringnoUser’s last (family) name
localeformstringnoUser preferred UI locale/language (BCP-47 tag); when empty, the network’s default language applies, then English
passwordformstringnoUser password (8-64 characters)
phoneformstringnoPhone number
receiveNewsletterformbooleannoOpt in to receive newsletter emails
receiveNotificationsByEmailformbooleannoReceive system notifications by email
refererformstringnoReferrer URL that brought the user to sign up
referralIdformintegernoReferral user ID if this user was referred by another user
stateformstringnoState or province
tracking.campaignformstringnoCampaign tracking parameter (UTM campaign name)
tracking.pageformstringnoLanding page tracking parameter
tracking.termformstringnoSearch term tracking parameter (UTM term)
usernameformstringnoLogin username (must be unique)
websiteUrlformstringnoWebsite URL
confirmPasswordformstringnoPassword confirmation. Must match the ‘password’ field exactly; otherwise a validation error is returned.

Note: the {hash} and {timestamp} segments sign the call with the network’s private key — see Manage the network’s REST API and Anthropic keys.

Responses: 200 — User registered successfully (includes ‘result’ message) or validation errors returned in ‘errors’ map · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/resetPasswordExec.do

Request examples

Execute password reset.

ParameterInTypeRequiredDescription
tokenformstringyesSingle-use token from the password reset email link.
newPassformstringyesThe new password to set for the user account.

Responses: 200 — Successful operation. Errors follow the shared conventions.

GET /rest-api/roles.do

Request examples

List the network’s roles.

No parameters beyond authentication.

Responses: 200 — {success, adminRolesVisible, roles:[{id, name, staticRole, identity, adminPages, manageable}], staticRoles:[{id, name}]}. Errors follow the shared conventions.

POST /rest-api/roles.do

Request examples

Create a role.

ParameterInTypeRequiredDescription
nameformstringyesThe role’s name, as the console shows it
staticRoleformstringyesThe static role to build on: its id, or its name as ‘staticRoles’ spells it
copyFromformintegernoStart from this role’s permissions and admin console pages — all but sign-up, contact-us and auto-activation, which start disabled

Responses: 200 — {success, id, name, staticRole, identity, manageable, notCopied?, notCopiedReason?}. Errors follow the shared conventions.

GET /rest-api/roles/{roleId}.do

Request examples

Read one role and what it may do.

ParameterInTypeRequiredDescription
roleIdpathintegeryesThe role’s id, as GET /rest-api/roles.do lists it
groupquerystringnoOne group of the matrix, as ‘groups’ names it
identityquerystringnoOne row, exactly as the answer spells it; a row over another role carries its id after #
containsquerystringnoOnly rows whose name or title contains this
includeNotGrantedquerybooleannoAlso the rows this role does not hold, which is the whole catalogue of what it could hold

Responses: 200 — {success, id, name, staticRole, identity, manageable, adminPages, groups, permissions, returned, more} · 404 — No role with that id. Errors follow the shared conventions.

POST /rest-api/roles/{roleId}.do

Request examples

Change a role’s name and permissions.

ParameterInTypeRequiredDescription
roleIdpathintegeryesThe id of a role you manage, as GET /rest-api/roles.do lists it
nameformstringnoA new name for the role
permissionsformarray<string>noRepeatable, each IDENTITY:PERMISSION:GRANTING
grantAdminPagesformarray<string>noAdmin console pages to add to a role built on ADMIN
revokeAdminPagesformarray<string>noAdmin console pages to take away from a role built on ADMIN

Responses: 200 — {success, changed:[…], ignoredFields:[…], ignoredFieldReasons:{…}} · 404 — No role with that id. Errors follow the shared conventions.

DELETE /rest-api/roles/{roleId}.do

Request examples

Delete a role.

ParameterInTypeRequiredDescription
roleIdpathintegeryesThe id of a role your network created, as GET /rest-api/roles.do lists it

Responses: 200 — {success} · 404 — No role with that id. Errors follow the shared conventions.

GET /rest-api/system-users.do

Request examples

Get system users.

ParameterInTypeRequiredDescription
rolesquerystringnoComma-separated list of ACL role IDs (e.g., ‘1,2’) or role names (e.g., ‘publisher,advertiser’) to filter the results. If omitted, all system users are returned.

Responses: 200 — JSON array of users: [{userId, username, email, firstName, lastName, roleId, role, status, created, referer, referredUsers, comments}]. Errors follow the shared conventions.

GET /rest-api/system-users/{userId}/access.do

Request examples

Read what one account may do.

ParameterInTypeRequiredDescription
userIdpathintegeryesNumeric id of the user, as system-users/search.do reports it

Responses: 200 — {success, userId, username, email, firstName, lastName, active, signInMode, created, role, adminPages, permissions, roleManageable} · 404 — No user with that id. Errors follow the shared conventions.

POST /rest-api/system-users/{userId}/access.do

Request examples

Give an account a role, or switch it off.

ParameterInTypeRequiredDescription
userIdpathintegeryesNumeric id of the user, as system-users/search.do reports it
roleformstringnoThe role to give the account: its id, or its name as roles.do spells it
activeformbooleannoWhether the account is switched on; off, it cannot sign in

Responses: 200 — {success, changed:[…], and the account as the read answers it} · 404 — No user with that id. Errors follow the shared conventions.

DELETE /rest-api/system-users/{userId}/delete.do

Request examples

Delete a user.

ParameterInTypeRequiredDescription
userIdpathintegeryesNumeric id of the user to delete, as /rest-api/system-users/search.do reports it

Responses: 200 — {success, deletedUserId, username} · 404 — No user with this id. Errors follow the shared conventions.

GET /rest-api/system-users/{userId}/notes.do

Request examples

List a user’s notes.

ParameterInTypeRequiredDescription
userIdpathintegeryesNumeric id of the user, as /rest-api/system-users/search.do reports it

Responses: 200 — {success, notes: [note], editable, notesTabVisible} · 404 — No user with this id. Errors follow the shared conventions.

POST /rest-api/system-users/{userId}/notes.do

Request examples

Add a note for a user.

ParameterInTypeRequiredDescription
userIdpathintegeryesNumeric id of the user, as /rest-api/system-users/search.do reports it

Request body (application/json, required): JSON object with fields text, title — The note.

Responses: 200 — {success, note, ignoredFields} · 404 — No user with this id. Errors follow the shared conventions.

POST /rest-api/system-users/{userId}/notes/{noteId}.do

Request examples

Change a note for a user.

ParameterInTypeRequiredDescription
userIdpathintegeryesNumeric id of the user, as /rest-api/system-users/search.do reports it
noteIdpathintegeryesNumeric id of the note, as the list of the user’s notes reports it

Request body (application/json, required): JSON object with fields text, title — Only the fields to change.

Responses: 200 — {success, note, ignoredFields} · 404 — No user with this id, or no note with this id for that user. Errors follow the shared conventions.

DELETE /rest-api/system-users/{userId}/notes/{noteId}.do

Request examples

Delete a note for a user.

ParameterInTypeRequiredDescription
userIdpathintegeryesNumeric id of the user, as /rest-api/system-users/search.do reports it
noteIdpathintegeryesNumeric id of the note, as the list of the user’s notes reports it

Responses: 200 — {success, deletedNoteId} · 404 — No user with this id, or no note with this id for that user. Errors follow the shared conventions.

POST /rest-api/system-users/create-and-share.do

Request examples

Create a user and share advertisers or sites with them.

ParameterInTypeRequiredDescription
emailformstringyesE-mail address, unused so far; the invitation goes here
loginformstringyesUsername the new account signs in with, unused so far, up to 64 characters
roleformstringyesRole id or name (case-insensitive). Must be a role your role may create users in; never an administrator role.
advertiserIdsformarray<integer>noAdvertisers to share with the new user
firstNameformstringnoOptional first name
lastNameformstringnoOptional last name
shareTypeformstringnoAccess the shares give: CAN_VIEW (default), CAN_EDIT or IS_OWNER Values: IS_OWNER, CAN_EDIT, CAN_VIEW.
siteIdsformarray<integer>noSites to share with the new user

Responses: 200 — User created: {success, userId, username, email, roleId, role, active, shareType, advertiserIds, siteIds, invitationSentTo} · 404 — An advertiser or site does not exist, is deleted or is not visible to the caller. Errors follow the shared conventions.

GET /rest-api/system-users/search.do

Request examples

Search system users.

ParameterInTypeRequiredDescription
activeOnlyquerybooleannoWhen true, only active (not deactivated) users are returned
limitqueryintegernoPage size, 1 to 500
queryquerystringnoSubstring of the username, e-mail, first name or last name. Omit to list everyone visible.
rolesquerystringnoComma-separated role ids or role names (case-insensitive), e.g. ‘4,Publisher’. Omit for every visible role.
startqueryintegerno0-based offset of the first user to return

Responses: 200 — Page of users sorted by userId: {success, total, start, limit, users:[{userId, username, email, firstName, lastName, roleId, role, status, created, referer, referredUsers, comments}]}. Errors follow the shared conventions.

POST /rest-api/user-preference/change-password.do

Request examples

Change user password.

ParameterInTypeRequiredDescription
confirmPasswordformstringnoConfirmation of the new password (must match newPassword)
currentPasswordformstringnoThe user’s current password for verification
newPasswordformstringnoThe new password to set (must meet password policy requirements)

Responses: 200 — Password changed successfully. Response: {success: true}. Errors follow the shared conventions.

GET /rest-api/user-preference/check-email.do

Request examples

Check email uniqueness.

ParameterInTypeRequiredDescription
emailquerystringyesThe email address to check for uniqueness. URL-encoded if it contains special characters.

Responses: 200 — Email check result. Response: {success: true, exist: true/false}. Errors follow the shared conventions.

GET /rest-api/user-preference/get.do

Request examples

Get user preferences.

No parameters beyond authentication.

Responses: 200 — User preferences returned in a ‘preference’ wrapper object. Errors follow the shared conventions.

GET /rest-api/user-preference/notes.do

Request examples

List the notes left for me.

No parameters beyond authentication.

Responses: 200 — {success, notes: [{id, title, text, date, readAt}]}. Errors follow the shared conventions.

POST /rest-api/user-preference/notes/{noteId}/read.do

Request examples

Mark one of my notes as read.

ParameterInTypeRequiredDescription
noteIdpathintegeryesNumeric id of the note, as the list of my notes reports it

Responses: 200 — {success, note: {id, title, text, date, readAt}} · 404 — The signed-in user has no note with this id. Errors follow the shared conventions.

POST /rest-api/user-preference/notes/read-all.do

Request examples

Mark all my notes as read.

No parameters beyond authentication.

Responses: 200 — {success, marked}. Errors follow the shared conventions.

GET /rest-api/user-preference/notes/unread-count.do

Request examples

Count my notes and the unread ones.

No parameters beyond authentication.

Responses: 200 — {success, unread, total}. Errors follow the shared conventions.

POST /rest-api/user-preference/save.do

Request examples

Save user preferences.

Request body (application/json, required): JSON object with fields accountUIStyle, aclRole, company, country, email, firstName, lastName, password, phone, state, userId, username, websiteUrl.

Responses: 200 — User preferences saved successfully. Response includes the updated ‘preference’ object. Errors follow the shared conventions.

GET /rest-api/user-preference/signed-in-devices.do

Request examples

List own signed-in devices.

No parameters beyond authentication.

Responses: 200 — {success, sessionDays, devices: [{id, current, keptSignedIn, active, browser, os, userAgent, ip, place, methods, signedInAt, lastActiveAt}]}. Errors follow the shared conventions.

GET /rest-api/user-preference/two-factor.do

Request examples

Read own two-factor sign-in status.

No parameters beyond authentication.

Responses: 200 — {success, twoFactor: {enabled, methods, levels, defaultMethod, recoveryCodesLeft, verifications, passkeys, required, enforced, minLevel, requiredVerifications, requiredFrom, satisfied}}. Errors follow the shared conventions.

POST /rest-api/user-preference/update-profile.do

Request examples

Update own profile.

Request body (application/json, required): JSON object with fields accountUIStyle, advancedAnalyticsView, compactMode, company, country, darkTheme, firstName, lastName, locale, phone, receiveNewsletter, receiveNotificationsByEmail, state, websiteUrl.

Responses: 200 — Profile saved. Errors follow the shared conventions.

POST /rest-api/user-sign-up/{key}/{hash}/{timestamp}.do

Request examples

User sign-up.

ParameterInTypeRequiredDescription
keypathstringyesThe network’s public key, as set in its white-label settings.
roleformstringnoLegacy alternative to aclRole: a role name, mapped to the matching stock role. Ignored when aclRole is sent Values: ADMIN, PUBLISHER, ADVERTISER, ADVERTISER_STATISTICS_ACCOUNT, PUBLISHER_STATISTICS_ACCOUNT, NETWORK, CONTACT_US.
aclRoleformintegernoACL role defining user permissions — ID of the acl role
accountUIStyleformstringnoUI layout style preference (TREES, GRIDS) Values: TREES, GRIDS.
commentsformstringnoInternal notes and comments about the user
compactModeformbooleannoCompact UI density preference; null means the client keeps its own default
companyformstringnoCompany name
countryformstringnoTwo-letter country code (ISO 3166-1 alpha-2)
darkThemeformbooleannoDark color theme preference; null means the client keeps its own default
emailformstringnoUser email address (must be unique)
firstNameformstringnoFirst name
lastNameformstringnoUser’s last (family) name
localeformstringnoUser preferred UI locale/language (BCP-47 tag); when empty, the network’s default language applies, then English
passwordformstringnoUser password (8-64 characters)
phoneformstringnoPhone number
receiveNewsletterformbooleannoOpt in to receive newsletter emails
receiveNotificationsByEmailformbooleannoReceive system notifications by email
refererformstringnoReferrer URL that brought the user to sign up
referralIdformintegernoReferral user ID if this user was referred by another user
stateformstringnoState or province
tracking.campaignformstringnoCampaign tracking parameter (UTM campaign name)
tracking.pageformstringnoLanding page tracking parameter
tracking.termformstringnoSearch term tracking parameter (UTM term)
usernameformstringnoLogin username (must be unique)
websiteUrlformstringnoWebsite URL

Note: the {hash} and {timestamp} segments sign the call with the network’s private key — see Manage the network’s REST API and Anthropic keys.

Responses: 200 — User signed up successfully (includes ‘result’ and ‘username’) or validation errors returned · 404 — Not found — resource does not exist. Errors follow the shared conventions.

POST /rest-api/user/update.do

Request examples

Update user info.

ParameterInTypeRequiredDescription
usernameToUpdateformstringyesUsername (login) of the target user whose profile should be updated. The user must exist in the system
activeformbooleannoWhether the user account is active
aiChatMonthlyLimitUsdformstringnoThe user’s monthly AI assistant budget in billed USD, 0 to 1000000. Send it empty to clear it, so the network default applies; leave it out to keep the current value.
commentsformstringnoAdmin comments about the user
companyformstringnoCompany name
countryformstringnoTwo-letter country code (ISO 3166-1 alpha-2)
emailformstringnoUser email address
firstNameformstringnoFirst name
lastNameformstringnoUser’s last (family) name
loginformstringnoUser login name (username)
passwordformstringnoNew password for the account. Checked against the network’s password policy (8-64 characters by default, not a common password, not containing the login or email); setting it ends the account’s other sessions and emails the account holder
phoneformstringnoPhone number
receiveNewsletterformbooleannoWhether the user receives newsletters
receiveNotificationsByEmailformbooleannoWhether the user receives notifications by email
refererformstringnoReferrer URL or identifier
roleformintegernoUser role ID
stateformstringnoState or region name
uiStyleformstringnoUI style preference Values: TREES, GRIDS.
websiteUrlformstringnoWebsite URL

Responses: 200 — Operation result with success status. Errors follow the shared conventions.

GET /rest-api/users/{username}/scheduledEvents.do

Request examples

Get user scheduled events.

ParameterInTypeRequiredDescription
usernamepathstringyesLogin username of the user whose scheduled events should be retrieved — the caller’s own, or one whose role the caller’s admin role manages

Responses: 200 — Scheduled events retrieved successfully · 404 — No such user, or the user is neither the caller nor an account the caller’s admin role manages. Errors follow the shared conventions.

POST /rest-api/users/{username}/scheduledEvents/{scheduledEventId}.do

Request examples

Update user scheduled event.

ParameterInTypeRequiredDescription
usernamepathstringyesLogin username of the user who owns the scheduled event — the caller’s own, or one whose role the caller’s admin role manages
scheduledEventIdpathintegeryesUnique identifier of the scheduled event to update
frequencyformintegernoFrequency of the event (0-200). Omitted on update keeps it
periodformintegernoPeriod type: 1 = daily, 2 = weekly, 3 = monthly. Omitted on update keeps it
startAtformintegernoStart time offset in minutes from midnight. Omitted on update keeps it

Responses: 200 — Scheduled event updated successfully · 404 — No such user, the user is neither the caller nor an account the caller’s admin role manages, or the user has no such scheduled event. Errors follow the shared conventions.

Related pages

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.