For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inBook a demo
GuidesAPI Reference
GuidesAPI Reference
  • API Reference
      • GETList Current Org Users
      • POSTCreate Current Org User
      • GETGet Current Org User
      • PUTUpdate Current Org User
      • DELDelete Current Org User
      • GETList Partner Users
      • POSTCreate Partner User
      • GETGet Partner User
      • PUTUpdate Partner User
      • DELDelete Partner User
      • POSTCreate Partner User API Key
Logo
Log inBook a demo
API ReferenceUsers

Create Current Org User

POST
https://app.polytomic.com/api/organization/users
POST
/api/organization/users
$curl -X POST https://app.polytomic.com/api/organization/users \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "email": "jane.doe@polytomic.com"
>}'
1{
2 "data": {
3 "email": "jane.doe@polytomic.com",
4 "id": "a3f1c9e2-7b4d-4f8a-9c2e-1d2f3b4a5c6d",
5 "organization_id": "d9e8f7a6-b5c4-3d2e-1f0a-9b8c7d6e5f4a",
6 "role_ids": [
7 "248df4b7-aa70-47b8-a036-33ac447e668d"
8 ],
9 "role": "admin"
10 }
11}
Creates a new user in the caller's current organization and assigns the requested permissions roles. The new user receives an invitation email prompting them to set up their account. Role assignments take effect as soon as the invitation is accepted.
Was this page helpful?
Previous

Get Current Org User

Next

Authentication

AuthorizationBearer
Bearer user API key
OR
AuthorizationBasic

Basic organization-scoped API key

Headers

X-Polytomic-VersionstringOptional

Request

This endpoint expects an object.
emailstringRequired
Email address used to sign the user in and receive notifications.
role_idslist of stringsOptional
Identifiers of the permissions roles to assign to the user. Must contain at least one entry when provided.
rolestringOptionalDeprecated

Deprecated legacy role name. Use role_ids instead; setting both role and role_ids in the same request is rejected.

Response

OK
dataobject

Errors

403
Forbidden Error
422
Unprocessable Entity Error
500
Internal Server Error