Skip to main content

About this document

For integrations that manage members and quotas outside the Qoder UI. Complete Get API Key first, then read Conventions.

Requirements

  • Valid API key: Authorization: Bearer <api_key>.
  • Key must belong to the target organization; caller permissions must allow the operation.

API list

1. List members

GET /v1/organizations/{organization_id}/members Paginated retrieval of organization members, with keyword search support.

Path parameters

Query parameters

Success response (200 OK)

Default query (active members only):
Some member records may not return the email field; treat it as optional during integration.
Including deleted members (**includeDeleted=true**):
deletedAt is only returned for deleted members; active members do not include this field. An empty nextToken string indicates the last page.

Response fields


2. Get member details

GET /v1/organizations/{organization_id}/members/{member_id} Retrieve detailed information for a single member.

Path parameters

Success response (200 OK)

Active member:
Deleted member (**GetMember** automatically includes deleted members):

Response fields

Same as the members[] fields in “List members”.

3. Get member statistics

GET /v1/organizations/{organization_id}/members/statistics Retrieve statistical data about organization members.

Path parameters

Success response (200 OK)

Response fields


4. Delete member

DELETE /v1/organizations/{organization_id}/members/{member_id} Remove a member from the organization. Before removal, the system checks whether the member had usage in the current billing cycle.

Path parameters

Success response (200 OK)

Member has usage in the current cycle (seat release deferred to end of cycle):
Member has no usage in the current cycle (seat can be released immediately):

Response fields

Error responses

Member not in this team (404)
Insufficient members (400)

5. Get member quota

GET /v1/organizations/{organization_id}/members/{member_id}/quota Query the full usage details for a specified member, including plan quota, resource pack quota, total quota, and organization shared pack quota.

Path parameters

Success response (200 OK)

With organization shared pack, status normal:
No organization shared pack, usage exceeded:
When the organization has no shared pack, sharedQuota is not returned; when the member has no resource pack, resourcePackageQuota is not returned. A status of restricted means the usage limit has been reached.

Response fields

Quota summary fields

6. Batch get member quotas

POST /v1/organizations/{organization_id}/members/batchGetQuota Query quota usage for multiple members in one request. This endpoint has the same quota scope as Get member quota.

Path parameters

Request body (JSON)

Success response (200 OK)

The quotas array follows the order of memberIds, including duplicate IDs. If a member has no quota record, only memberId and userId are returned for that item. If any member does not exist in the organization, the entire request returns 404 NotFound; partial success is not returned.

Response fields


7. Update member Add-On Cap

PUT /v1/organizations/{organization_id}/members/{member_id}/addon-cap Update a member’s Shared Add-On quota cap (based on Big Model Credits quota).

Path parameters

Request parameters (JSON)

Request examples

Set a quota cap:
Set to unlimited:

Success response (200 OK)

When unlimited:

Response fields

Error responses

Invalid addOnCap format (400)
Member not in this team (404)

8. Batch update member Add-On Cap

POST /v1/organizations/{organization_id}/batchUpdateAddOnCap Batch update the Shared Add-On quota cap for specified members (based on Big Model Credits quota). Up to 100 members per request; all members are set to the same cap.

Path parameters

Request parameters (JSON)

Request examples

Batch set quota cap:
Batch set to unlimited:

Success response (200 OK)

previousAddOnCap of null means the member previously had no limit (unlimited).

Response fields

Error responses

Invalid addOnCap format (400)
memberIds is empty (400)
memberIds exceeds 100 (400)

Error codes

Error response shape: see Error responses in Conventions.

Usage examples

List members

Search member by email

List members (including removed)

Get member details

Get member statistics

Delete member

Update member Add-On Cap

Get member quota

Batch get member quotas

Batch update member Add-On Cap