For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Organization

Organization and user management

Get Organization Members

get
/organization/{orgId}/users

Retrieves the members of your organization. Any User field can be used as a query filter, and sort, fields and populate work the same way as on the other list endpoints. Each member's organizations array is trimmed to your organization.

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
orgIdstringRequired

Organization ID. The value is not read by the server: every organization endpoint resolves the organization from the API key, so the call always targets your own organization.

Query parameters
pageinteger · min: 1Optional

Page number (1-indexed). Sets the page size to 10 when limit is absent.

limitinteger · min: 1Optional

Items per page. Not capped; without it and without page no limit is applied.

emailstringOptional

Filter by exact email

Responses
200

Members retrieved successfully

application/json
statusstringOptionalExample: success
get/organization/{orgId}/users
curl -X GET "https://imeritapi.ango.ai/v2/organization/org123/users?page=1&limit=10&email=john@example.com" \
  -H "apikey: YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "status": "success",
  "data": {
    "users": [
      {
        "_id": "text",
        "id": "text",
        "email": "text",
        "name": "text",
        "type": "human",
        "organizations": [
          {
            "organization": "text",
            "organizationRole": "admin"
          }
        ],
        "organization": "text",
        "organizationRole": "admin",
        "organizationLimit": 1,
        "pinnedProjects": [
          "text"
        ],
        "lastActiveAt": "2026-01-01T00:00:00.000Z",
        "emailVerified": true,
        "globalExpert": true,
        "twoFactorEnabled": true,
        "notificationsSnoozed": true,
        "personalInformation": {},
        "professionalInformation": {},
        "deleted": true,
        "createdAt": "2026-01-01T00:00:00.000Z"
      }
    ],
    "total": 1
  }
}

Update Members

post
/organization/{orgId}/users

Sets the organization role of existing members. The body is not validated here, so a role outside admin and member, or a missing one, is stored as is and the member stops being treated as an admin. Entries whose email is not a member are skipped, but the returned counts still include them.

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
orgIdstringRequired

Organization ID. The value is not read by the server: every organization endpoint resolves the organization from the API key, so the call always targets your own organization.

Body
Responses
200

Members updated successfully

application/json
statusstringOptionalExample: success
post/organization/{orgId}/users
POST /v2/organization/{orgId}/users HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 65

{
  "users": [
    {
      "email": "name@gmail.com",
      "organizationRole": "admin"
    }
  ]
}
{
  "status": "success",
  "data": {
    "users": {
      "matchedCount": 1,
      "modifiedCount": 1
    }
  }
}

Delete Members

delete
/organization/{orgId}/users

Removes members from your organization. The user account itself is kept and the member stays assigned to any project they were on. One seat is freed per entry that matches an existing user account, whether or not that account was a member. Entries whose email matches no account are skipped, but the returned counts still include them.

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
orgIdstringRequired

Organization ID. The value is not read by the server: every organization endpoint resolves the organization from the API key, so the call always targets your own organization.

Body
usersstring · email[]Required
Responses
200

Members deleted successfully

application/json
statusstringOptionalExample: success
delete/organization/{orgId}/users
DELETE /v2/organization/{orgId}/users HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 28

{
  "users": [
    "name@gmail.com"
  ]
}
{
  "status": "success",
  "data": {
    "users": {
      "matchedCount": 1,
      "modifiedCount": 1
    }
  }
}

Get Organization Invites

get
/organization/{orgId}/invites

Retrieves the invitations of your organization, including ones already registered or revoked. Any Invitation field can be used as a query filter, and sort, fields and populate work the same way as on the other list endpoints.

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
orgIdstringRequired

Organization ID. The value is not read by the server: every organization endpoint resolves the organization from the API key, so the call always targets your own organization.

Query parameters
pageinteger · min: 1Optional

Page number (1-indexed). Sets the page size to 10 when limit is absent.

limitinteger · min: 1Optional

Items per page. Not capped; without it and without page no limit is applied.

statusstring · enumOptional

Filter by invitation status

Possible values:
Responses
200

Invites retrieved successfully

application/json
statusstringOptionalExample: success
get/organization/{orgId}/invites
GET /v2/organization/{orgId}/invites HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Accept: */*
{
  "status": "success",
  "data": {
    "invites": [
      {
        "_id": "text",
        "id": "text",
        "to": "name@gmail.com",
        "sender": "text",
        "organization": "text",
        "organizationRole": "admin",
        "status": "pending",
        "projectAssignments": [
          {
            "projectId": "text",
            "projectRole": "Manager"
          }
        ],
        "toExist": true,
        "link": "text",
        "sso": true,
        "deleted": true,
        "createdAt": "2026-01-01T00:00:00.000Z"
      }
    ],
    "total": 1
  }
}

Send Invitations

post
/organization/{orgId}/invites

Invites people to your organization. Emails are lowercased and de-duplicated, and addresses that already belong to a member or already have a pending invitation are dropped, so the returned list can be shorter than to. Each new invitation consumes a seat, and the call fails with 403 when the subscription cannot cover every address in to, counted before the dropped ones are removed. Every recipient also gets an in-app notification.

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
orgIdstringRequired

Organization ID. The value is not read by the server: every organization endpoint resolves the organization from the API key, so the call always targets your own organization.

Body
tostring · email[] · min: 1Required
organizationRolestring · enumRequired

Rejected with 400 when it is not one of these two values

Possible values:
Responses
200

Invitations sent successfully

application/json
statusstringOptionalExample: success
post/organization/{orgId}/invites
POST /v2/organization/{orgId}/invites HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 245

{
  "to": [
    "name@gmail.com"
  ],
  "organizationRole": "admin",
  "projectAssignments": [
    {
      "projectId": "text",
      "projectRole": "Manager"
    }
  ],
  "organizationRoleAssignments": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "projectRoleAssignments": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  }
}
{
  "status": "success",
  "data": {
    "invites": [
      {
        "_id": "text",
        "id": "text",
        "to": "name@gmail.com",
        "sender": "text",
        "organization": "text",
        "organizationRole": "admin",
        "status": "pending",
        "projectAssignments": [
          {
            "projectId": "text",
            "projectRole": "Manager"
          }
        ],
        "toExist": true,
        "link": "text",
        "sso": true,
        "deleted": true,
        "createdAt": "2026-01-01T00:00:00.000Z"
      }
    ],
    "total": 1
  }
}

Delete Invites

delete
/organization/{orgId}/invites

Revokes invitations by recipient email, not by invitation ID. The invitation row is kept and its status becomes revoked, and one seat is freed per revoked invitation.

Authorizations
apikeystringRequired

API key for authentication. Format - apikey YOUR_API_KEY

Path parameters
orgIdstringRequired

Organization ID. The value is not read by the server: every organization endpoint resolves the organization from the API key, so the call always targets your own organization.

Body
invitesstring · email[]Required

Recipient emails of the invitations to revoke, not invitation IDs

Responses
200

Invites revoked successfully

application/json
statusstringOptionalExample: success
delete/organization/{orgId}/invites
DELETE /v2/organization/{orgId}/invites HTTP/1.1
Host: imeritapi.ango.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 30

{
  "invites": [
    "name@gmail.com"
  ]
}
{
  "status": "success",
  "data": {
    "invites": {
      "matchedCount": 1,
      "modifiedCount": 1
    }
  }
}

Last updated