iMarioiMario
DocumentsAPI reference

Guides

API Overview and QuickstartAuthenticationSandbox and Test KeysAPI ErrorsPaginationIdempotent RequestsRate LimitsAPI VersioningWebhooks

Endpoints

All EndpointsWorkspaceAudiencesPeopleStudiesReportsLibraryFilesAuto StudiesConnectionsMembersAPI KeysWebhook Endpoints
Endpoints

Members

List the workspace's members, invite people, change a role and remove a member. Owners and admins, live keys only.

Base URL https://api.imario.ai/v1. Each call needs a key that holds the scope shown and acts with at least the role shown (Authentication). Errors are described in API errors.

List members

GET /v1/members

Scope members:read · Role owner or admin

Newest member first. A member object: id (the membership), livemode, created_at (when they joined), user_id, name, email, role (owner | admin | editor | viewer), monthly_credit_cap and spent_this_month (a pooled workspace's per-member cap and this UTC month's draw), via_sso.

Parameters

NameInTypeRequiredDescription
limitqueryintegerNoHow many objects to return (1-100). Default 20.
cursorquerystringNoThe next_cursor of the previous page. Up to 200 characters.

Example

curl https://api.imario.ai/v1/members \
  -H "Authorization: Bearer $IMARIO_API_KEY"

Response

Returns a list: {"object": "list", "data": [...], "has_more": false, "next_cursor": null}. See Pagination.

Invite a member

POST /v1/members/invitations

Scope members:write · Role owner or admin · Live keys only

Emails an invitation (14 days) and, when the person has an account, rings their bell. Inviting an address with a pending invitation sends it again with the new role. An admin or editor takes a seat and a viewer does not; 403 seat_limit_exceeded when no seat is free. Returns an invitation: id, email, role, status, expires_at, email_sent (and invitation_url to share by hand when the mail could not be sent).

Request body

FieldTypeRequiredDescription
emailstringYes3 to 255 characters.
rolestringNoOne of admin, editor, viewer. Default "editor".

Example

curl https://api.imario.ai/v1/members/invitations \
  -H "Authorization: Bearer $IMARIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "role": "editor"
  }'

Change a member's role

PATCH /v1/members/{id}

Scope members:write · Role owner or admin · Live keys only

Sets the role to admin, editor or viewer. The owner's role never changes here; promoting a viewer needs a free seat (403 seat_limit_exceeded). A member object: id (the membership), livemode, created_at (when they joined), user_id, name, email, role (owner | admin | editor | viewer), monthly_credit_cap and spent_this_month (a pooled workspace's per-member cap and this UTC month's draw), via_sso.

Request body

FieldTypeRequiredDescription
rolestringYesOne of admin, editor, viewer.

Example

curl -X PATCH https://api.imario.ai/v1/members/MEMBER_ID \
  -H "Authorization: Bearer $IMARIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "role": "viewer"
  }'

Remove a member

DELETE /v1/members/{id}

Scope members:write · Role owner or admin · Live keys only

Removes the member from the workspace and revokes their personal keys and the apps they connected (service accounts they made stay: they are the workspace's). The owner cannot be removed (403 owner_protected). Returns {object: "member", id, deleted: true, revoked_api_keys}.

Example

curl -X DELETE https://api.imario.ai/v1/members/MEMBER_ID \
  -H "Authorization: Bearer $IMARIO_API_KEY"
← ConnectionsAPI Keys →

On this page

List membersInvite a memberChange a member's roleRemove a member