Credit
The Credit category provides queries and quota allocation for organization Credits: balances, credits nearing expiration, credit entries, consumption details and totals, usage statistics, pricing rules and pricing items, as well as quota settings for members, roles, and inboxes (list, set, update, deactivate, and specify whether a quota is required), and batch allocation or deactivation of member quotas by role.
Prerequisites
Authentication and Path Parameters
All APIs except Pricing Rules and Pricing Items require an API Key in the HTTP header:
Authorization: Api-Key {API_KEY}The system automatically identifies the organization and member associated with the API Key. APIs starting with /api/v1/credit/ do not require a separate organization identifier. Obtain the IDs required in paths as follows:
organizationPk: CallGET /api/v1/organizations/and use the organization'sidfrom the response.Wallet
id: CallGET /api/v1/organizations/{id}/and usecreditWallet.idfrom the response.
Rate Limits
For APIs that require an API Key, the rate limit is the number of requests per minute configured individually for each API Key. Organization administrators set this in the Requests per Minute (RPM) field under Organization Settings → API Keys. Calls to all APIs on the platform using the same key count toward a shared total. Keys without a configured limit are exempt. Requests exceeding the limit are rejected with HTTP 429; wait until the next minute before retrying.
Pricing Rules and Pricing Items do not require an API Key. Their rate limits are calculated separately by source IP; see the notes for each API.
How Quotas Work
Members, roles, and inboxes each have a quota layer, corresponding to the three tabs under Credits → Quota Allocation in the admin console. Each layer is tracked independently:
Member quota: The usage limit for an individual member.
Role quota: A shared limit for all members of a role, tracked separately from each member's individual quota. If a member belongs to multiple roles that require quotas, usage counts toward every role. Exhausting any one role's quota blocks further use.
Inbox quota: The usage limit for AI replies in that inbox. Quotas cannot be set for MaiGPT inboxes.
The same rules apply to each layer:
Quota required: Members, roles, and inboxes each have a Quota Required setting (response field
creditQuotaRequired). When disabled, this layer is neither checked nor tracked, and the organization wallet is used directly. When enabled, an active quota is required. Without an active quota, use is blocked: members and roles cannot use features that consume Credits, and AI replies are paused for inboxes.Setting a quota automatically enables Quota Required. Each entity can have only one active quota at a time. Attempting to set another quota while an active one exists returns
400; deactivate the old quota first.Deactivating a quota does not disable Quota Required: The entity remains blocked until a new quota is set or the quota requirement is removed. For roles and inboxes, use their respective Set Whether a Quota Is Required API. For members, ask an administrator to remove the requirement under Credits → Quota Allocation in the admin console, or use Batch Deactivate Quotas by Role with
removeQuotaRequirement: trueto remove it for all members of a role at once. Deactivation does not delete records. Deactivated quotas still appear in List Quota Settings withisActiveset tofalse.Request fields for setting a quota:
quotaLimit(quota limit, required),validFrom(start time, required),validUntil(expiration time, optional; must be later thanvalidFromand no later than the latest expiration date among the organization's credit entries),resetPeriod(usage reset interval:none,daily,weekly, ormonthly; defaults tonone), andnote(optional note).Time format: Always use ISO 8601 strings for
validFromandvalidUntilin requests, such as2026-12-31T23:59:59+08:00. A date alone (2026-12-31) is interpreted as 00:00 on that date in Taiwan time. Millisecond timestamps (such as1798732799000) are not accepted and return400. Time fields in responses use 13-digit millisecond timestamps.Default quota for new members: Organizations can configure an individual quota to be assigned automatically to new members; see Get Default Quota Settings for New Members. A quota can also be specified for each invitee when sending invitations; see Invite Members to an Organization under Organizations and Members.
IDs in paths: Obtain
memberPkfrom theidin the List Current Member Quotas response,groupPkfrom List Current Role Quotas, andinboxPkfrom List Current Inbox Quotas. Obtain the quota setting's ownidfrom the corresponding List Quota Settings API.
Permissions and Billing Modes
The required permissions and billing mode prerequisites are listed below each API. An API Key acts as the member who created it, and permissions are determined by that member's roles. Requests are rejected with HTTP 403 in either of these cases:
Insufficient permissions: The roles of the member associated with the key do not have the permission specified by the API (Credit Management, Usage Statistics, or Organization Overview). Ask an organization administrator to enable the corresponding permission for the member's role under Organization Settings → Roles.
The organization does not use Credit billing: APIs marked as requiring Credit billing are available only to organizations using that billing mode. Call
GET /api/v1/organizations/{id}/to check: these APIs are available whenorganizationPlan.billingModeiscredit, or when the organization has no plan yet andorganizationPlanis empty. To switch to Credit billing, contact your MaiAgent representative.
Query Credit Balance
GET /api/v1/credit/wallets/
Parameters
page
❌
integer
A page number within the paginated result set.
pageSize
❌
integer
Number of results to return per page.
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
Get Wallet Details
GET /api/v1/credit/wallets/{id}/
Parameters
id
✅
string
A UUID string identifying this Credit Wallet.
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
Get Wallet Balance
GET /api/v1/credit/wallets/{id}/balance/
Parameters
id
✅
string
A UUID string identifying this Credit Wallet.
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
Query Expiring Credits
GET /api/v1/credit/wallets/{id}/expiring-credits/
Parameters
id
✅
string
A UUID string identifying this Credit Wallet.
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
Retrieve Top-up History
GET /api/v1/credit/wallets/{id}/topup-history/
Parameters
id
✅
string
A UUID string identifying this Credit Wallet.
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
List Usage Transactions
GET /api/v1/credit/transactions/
Parameters
page
❌
integer
A page number within the paginated result set.
pageSize
❌
integer
Number of results to return per page.
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
Retrieve a Usage Transaction
GET /api/v1/credit/transactions/{id}/
Parameters
id
✅
string
A UUID string identifying this Credit Transaction.
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
Query Consumption Records
GET /api/v1/credit/transactions/history/
Parameters
category
❌
string
Credit item category (e.g. llm_token, platform_fee); agent_memory selects the AI memory lines, which llm_token then leaves out
endDate
❌
string
End date (inclusive, whole day in the platform timezone Asia/Taipei), format: YYYY-MM-DD
limit
❌
integer
Rows per page, capped at 100
page
❌
integer
1-based page number
search
❌
string
Case-insensitive match against transaction description and metadata
startDate
❌
string
Start date (inclusive, whole day in the platform timezone Asia/Taipei), format: YYYY-MM-DD
type
❌
string
Which rows to include: all ledger entries, consumption only, or credited only
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
Query Consumption Totals
GET /api/v1/credit/transactions/history-summary/
Parameters
category
❌
string
Credit item category (e.g. llm_token, platform_fee); agent_memory selects the AI memory lines, which llm_token then leaves out
endDate
❌
string
End date (inclusive, whole day in the platform timezone Asia/Taipei), format: YYYY-MM-DD
search
❌
string
Case-insensitive match against transaction description and metadata
startDate
❌
string
Start date (inclusive, whole day in the platform timezone Asia/Taipei), format: YYYY-MM-DD
type
❌
string
Which rows to include: all ledger entries, consumption only, or credited only
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
Query Credit Usage by Category
GET /api/v1/organizations/{organizationPk}/usage-statistics/credit-categories/
Parameters
organizationPk
✅
string
A UUID string identifying this organization ID
endDate
❌
string
End date, format: YYYY-MM-DD
page
❌
integer
A page number within the paginated result set.
pageSize
❌
integer
Number of results to return per page.
startDate
✅
string
Start date, format: YYYY-MM-DD
timeGranularity
❌
string
Time granularity (hour/day/month)
Code Examples
Response
Status Code: 200
Example Response Schema
Example Response Values
Retrieve Credit Usage for a Single Category
GET /api/v1/organizations/{organizationPk}/usage-statistics/credit-categories/{id}/
Parameters
id
✅
string
organizationPk
✅
string
A UUID string identifying this organization ID
endDate
❌
string
End date, format: YYYY-MM-DD
startDate
✅
string
Start date, format: YYYY-MM-DD
timeGranularity
❌
string
Time granularity (hour/day/month)
Code Examples
Response
Status Code: 200
Example Response Schema
Example Response Values
Retrieve Member Usage for a Billable Item
GET /api/v1/organizations/{organizationPk}/usage-statistics/credit-categories/{itemPk}/members/
Parameters
itemPk
✅
string
organizationPk
✅
string
A UUID string identifying this organization ID
endDate
❌
string
End date, format: YYYY-MM-DD
page
❌
integer
A page number within the paginated result set.
pageSize
❌
integer
Number of results to return per page.
startDate
✅
string
Start date, format: YYYY-MM-DD
timeGranularity
❌
string
Time granularity (hour/day/month)
Code Examples
Response
Status Code: 200
Example Response Schema
Example Response Values
Retrieve Billable Item Usage for a Single Member
GET /api/v1/organizations/{organizationPk}/usage-statistics/credit-categories/{itemPk}/members/{id}/
Parameters
id
✅
string
itemPk
✅
string
organizationPk
✅
string
A UUID string identifying this organization ID
endDate
❌
string
End date, format: YYYY-MM-DD
startDate
✅
string
Start date, format: YYYY-MM-DD
timeGranularity
❌
string
Time granularity (hour/day/month)
Code Examples
Response
Status Code: 200
Example Response Schema
Example Response Values
Retrieve Default Quota Settings for New Members
GET /api/v1/credit/wallets/{id}/new-member-quota-policy/
Parameters
id
✅
string
A UUID string identifying this Credit Wallet.
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
Update Default Quota Settings for New Members
PATCH /api/v1/credit/wallets/{id}/new-member-quota-policy/
Parameters
id
✅
string
A UUID string identifying this Credit Wallet.
Request Body
Request Parameters
newMemberQuotaEnabled
boolean
No
newMemberQuotaLimit
string (decimal)
No
newMemberQuotaValidDays
integer
No
newMemberQuotaResetPeriod
string (enum: none, daily, weekly, monthly)
No
none: No Reset ; daily: Daily ; weekly: Weekly ; monthly: Monthly;
newMemberQuotaNote
string
No
requireQuotaBeforeConsumption
boolean
No
Example Request Schema
Example Request Values
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
Status Code: 400 - Validation failed, or the organization is not on credit billing.
List Current Member Quotas
GET /api/v1/organizations/{organizationPk}/credit-quota-members/
Parameters
organizationPk
✅
string
A UUID string identifying this organization ID
ordering
❌
string
Sort field (default '-created_at')
page
❌
integer
Page number
pageSize
❌
integer
Rows per page (max 100)
quotaStatus
❌
string
Filter by quota status
search
❌
string
Filter by member name, email, or member ID (case-insensitive substring)
Code Examples
Response
Status Code: 200
Example Response Schema
Example Response Values
List Current Role Quotas
GET /api/v1/organizations/{organizationPk}/credit-quota-groups/
Parameters
organizationPk
✅
string
A UUID string identifying this organization ID
ordering
❌
string
Sort field (default '-created_at')
page
❌
integer
Page number
pageSize
❌
integer
Rows per page (max 100)
quotaStatus
❌
string
Filter by quota status
search
❌
string
Filter by group name or group ID (case-insensitive substring)
Code Examples
Response Body
Status Code: 200
Example Response Structure
Example Response Values
List Current Conversation Platform Quotas
GET /api/v1/organizations/{organizationPk}/credit-quota-inboxes/
Parameters
organizationPk
✅
string
A UUID string identifying this organization ID
excludeBuiltIn
❌
boolean
When true, excludes data for official built-in Agents (locked instances created by renting from the Agent Marketplace), leaving only assistants created by the organization. Copies created with “Copy as Custom” count as organization-created assistants. Omitting this parameter or setting it to false leaves the results unfiltered by this condition.
ordering
❌
string
Which field to use when ordering the results.
page
❌
integer
A page number within the paginated result set.
pageSize
❌
integer
Number of results to return per page.
search
❌
string
A search term.
Code Examples
Response
Status Code: 200
Example Response Schema
Example Response Values
List Member Quota Settings
GET /api/v1/organizations/{organizationPk}/members/{memberPk}/credit-quotas/
Parameters
memberPk
✅
string
organizationPk
✅
string
A UUID string identifying this organization ID
page
❌
integer
A page number within the paginated result set.
pageSize
❌
integer
Number of results to return per page.
Code Examples
Response Body
Status Code: 200
Example Response Structure
Example Response Values
Retrieve a Member Quota Setting
GET /api/v1/organizations/{organizationPk}/members/{memberPk}/credit-quotas/{id}/
Parameters
id
✅
string
memberPk
✅
string
organizationPk
✅
string
A UUID string identifying this organization ID
Code Examples
Response Body
Status Code: 200
Example Response Structure
Example Response Values
Set a quota for a member
POST /api/v1/organizations/{organizationPk}/members/{memberPk}/credit-quotas/
Parameters
memberPk
✅
string
organizationPk
✅
string
A UUID string identifying this organization ID
Request body
Request parameters
quotaLimit
string (decimal)
Yes
validFrom
string (date-time)
Yes
validUntil
string (date-time)
No
note
string
No
resetPeriod
object
No
Example request schema
Example request values
Code examples
Response body
Status code: 201
Example response schema
Example response values
Update a member's quota settings
PATCH /api/v1/organizations/{organizationPk}/members/{memberPk}/credit-quotas/{id}/
Parameters
id
✅
string
memberPk
✅
string
organizationPk
✅
string
A UUID string identifying this organization ID
Request body
Request parameters
quotaLimit
string (decimal)
No
validUntil
string (date-time)
No
note
string
No
resetPeriod
string (enum: none, daily, weekly, monthly)
No
none: No Reset ; daily: Daily ; weekly: Weekly ; monthly: Monthly;
Example request schema
Example request values
Code examples
Response body
Status code: 200
Example response schema
Example response values
Deactivate a Member's Quota
DELETE /api/v1/organizations/{organizationPk}/members/{memberPk}/credit-quotas/{id}/
Parameters
id
✅
string
memberPk
✅
string
organizationPk
✅
string
A UUID string identifying this Organization ID
Code Examples
Response
204
No response body
List Role Quota Settings
GET /api/v1/organizations/{organizationPk}/groups/{groupPk}/credit-quotas/
Parameters
groupPk
✅
string
organizationPk
✅
string
A UUID string identifying this organization ID
page
❌
integer
A page number within the paginated result set.
pageSize
❌
integer
Number of results to return per page.
Code Examples
Response Body
Status Code: 200
Response Schema Example
Example Response Values
Retrieve a Role Quota Setting
GET /api/v1/organizations/{organizationPk}/groups/{groupPk}/credit-quotas/{id}/
Parameters
groupPk
✅
string
id
✅
string
organizationPk
✅
string
A UUID string identifying this organization ID
Code Examples
Response Body
Status Code: 200
Response Schema Example
Example Response Values
Set a quota for a role
POST /api/v1/organizations/{organizationPk}/groups/{groupPk}/credit-quotas/
Parameters
groupPk
✅
string
organizationPk
✅
string
A UUID string identifying this organization ID
Request body
Request parameters
quotaLimit
string (decimal)
Yes
validFrom
string (date-time)
Yes
validUntil
string (date-time)
No
note
string
No
resetPeriod
object
No
Request schema example
Example request values
Code examples
Response body
Status code: 201
Response schema example
Example response values
Update quota settings for a role
PATCH /api/v1/organizations/{organizationPk}/groups/{groupPk}/credit-quotas/{id}/
Parameters
groupPk
✅
string
id
✅
string
organizationPk
✅
string
A UUID string identifying this organization ID
Request body
Request parameters
quotaLimit
string (decimal)
No
validUntil
string (date-time)
No
note
string
No
resetPeriod
string (enum: none, daily, weekly, monthly)
No
none: No Reset ; daily: Daily ; weekly: Weekly ; monthly: Monthly;
Request schema example
Example request values
Code examples
Response body
Status code: 200
Response schema example
Example response values
Deactivate a Role's Quota Settings
DELETE /api/v1/organizations/{organizationPk}/groups/{groupPk}/credit-quotas/{id}/
Parameters
groupPk
✅
string
id
✅
string
organizationPk
✅
string
A UUID string identifying this Organization ID
Code Examples
Response Content
204
No response body
Set Whether a Role Requires a Quota
PATCH /api/v1/organizations/{organizationPk}/credit-quota-groups/{id}/credit-quota-required/
Parameters
id
✅
string
A UUID string identifying this Group.
organizationPk
✅
string
A UUID string identifying this Organization ID
Code Examples
Response Content
Status code: 200
Example Response Structure
Example Response Values
Retrieve Role Member Quota Statistics
GET /api/v1/organizations/{organizationPk}/groups/{id}/credit-quota-stats/
Parameters
id
✅
string
A UUID string identifying this Group.
organizationPk
✅
string
A UUID string identifying this organization ID
Code Examples
Response Body
Status Code: 200
Response Schema Example
Example Response Values
Batch allocate quotas by role
POST /api/v1/organizations/{organizationPk}/groups/{id}/batch-distribute-credit-quota/
Parameters
id
✅
string
A UUID string identifying this Group.
organizationPk
✅
string
A UUID string identifying this organization ID
Request body
Request parameters
name
string
Yes
canCreateChatbot
boolean
No
canCreateKnowledgeBase
boolean
No
canCreateInbox
boolean
No
canCreateDatabase
boolean
No
canCreateTool
boolean
No
canCreateAgentUiTool
boolean
No
canCreateSkill
boolean
No
canCreateTeam
boolean
No
Whether members of this role may create Agent Teams; the Team permission is still required.
canCreatePersonalSkill
boolean
No
Whether members of this role may create personal skills (skills only they can see and use). A member in several roles may if any of them allows it. Turning it off keeps existing personal skills but no...
canCreateVoiceAgent
boolean
No
Whether members of this role may create voice agents; the Voice Agent permission is still required.
maigptCanCodeInterpreter
boolean
No
Whether members of this role may use the code interpreter built-in tool in MaiGPT.
maigptCanRag
boolean
No
Whether members of this role may use the knowledge base RAG built-in tool in MaiGPT.
maigptCanDeepResearch
boolean
No
Whether members of this role may use Deep Research in MaiGPT. Deep Research reaches the public internet through its own built-in search, so a role that revokes the official web-search tools needs this...
maigptCanBrowserTool
boolean
No
Whether members of this role may use the browser built-in tool in MaiGPT.
maigptCanCloudDesktop
boolean
No
Whether members of this role may use the cloud desktop in MaiGPT.
maigptAllLlms
boolean
No
Whether members of this role may use every organization-available LLM in MaiGPT. Off = only the bound LLMs; an empty binding then means none.
maigptAllTools
boolean
No
Whether members of this role may call every official (global) tool in MaiGPT. Off = only the bound tools; an empty binding then means none.
maigptAllConnectors
boolean
No
Whether members of this role may call every official (global) MCP connector in MaiGPT. Off = only the bound connectors; an empty binding then means none.
maigptAllSkills
boolean
No
Whether members of this role may use every official (global) skill in MaiGPT. Off = only the bound skills; an empty binding then means none.
usageStatisticsScope
object
No
What this role's usage statistics permission shows: the whole organization, or only the AI assistants granted to the member's roles. A member with any organization-wide granting role sees the whole or...
Request structure example
Request example values
Code examples
Response content
Status code: 200
Response structure example
Response example values
Batch deactivate quotas by role
POST /api/v1/organizations/{organizationPk}/groups/{id}/batch-deactivate-credit-quota/
Parameters
id
✅
string
A UUID string identifying this Group.
organizationPk
✅
string
A UUID string identifying this organization ID
Request body
Request parameters
name
string
Yes
canCreateChatbot
boolean
No
canCreateKnowledgeBase
boolean
No
canCreateInbox
boolean
No
canCreateDatabase
boolean
No
canCreateTool
boolean
No
canCreateAgentUiTool
boolean
No
canCreateSkill
boolean
No
canCreateTeam
boolean
No
Whether members of this role may create Agent Teams; the Team permission is still required.
canCreatePersonalSkill
boolean
No
Whether members of this role may create personal skills (skills only they can see and use). A member in several roles may if any of them allows it. Turning it off keeps existing personal skills but no...
canCreateVoiceAgent
boolean
No
Whether members of this role may create voice agents; the Voice Agent permission is still required.
maigptCanCodeInterpreter
boolean
No
Whether members of this role may use the code interpreter built-in tool in MaiGPT.
maigptCanRag
boolean
No
Whether members of this role may use the knowledge base RAG built-in tool in MaiGPT.
maigptCanDeepResearch
boolean
No
Whether members of this role may use Deep Research in MaiGPT. Deep Research reaches the public internet through its own built-in search, so a role that revokes the official web-search tools needs this...
maigptCanBrowserTool
boolean
No
Whether members of this role may use the browser built-in tool in MaiGPT.
maigptCanCloudDesktop
boolean
No
Whether members of this role may use the cloud desktop in MaiGPT.
maigptAllLlms
boolean
No
Whether members of this role may use every organization-available LLM in MaiGPT. Off = only the bound LLMs; an empty binding then means none.
maigptAllTools
boolean
No
Whether members of this role may call every official (global) tool in MaiGPT. Off = only the bound tools; an empty binding then means none.
maigptAllConnectors
boolean
No
Whether members of this role may call every official (global) MCP connector in MaiGPT. Off = only the bound connectors; an empty binding then means none.
maigptAllSkills
boolean
No
Whether members of this role may use every official (global) skill in MaiGPT. Off = only the bound skills; an empty binding then means none.
usageStatisticsScope
object
No
What this role's usage statistics permission shows: the whole organization, or only the AI assistants granted to the member's roles. A member with any organization-wide granting role sees the whole or...
Request structure example
Example Request Values
Code Examples
Response
Status Code: 200
Example Response Structure
Example Response Values
List credit quotas for an inbox
GET /api/v1/inboxes/{inboxPk}/credit-quotas/
Parameters
inboxPk
✅
string
page
❌
integer
A page number within the paginated result set.
pageSize
❌
integer
Number of results to return per page.
Code examples
Response body
Status code: 200
Example response schema
Example response values
Status code: 4XX - Error response; X-Error-Code carries its code (see "Error codes").
Retrieve a credit quota for an inbox
GET /api/v1/inboxes/{inboxPk}/credit-quotas/{id}/
Parameters
id
✅
string
inboxPk
✅
string
Code examples
Response body
Status code: 200
Example response schema
Example response values
Status code: 4XX - Error response; X-Error-Code carries its code (see "Error codes").
Set a credit quota for an inbox
POST /api/v1/inboxes/{inboxPk}/credit-quotas/
Parameters
inboxPk
✅
string
Request body
Request parameters
quotaLimit
string (decimal)
Yes
validFrom
string (date-time)
Yes
validUntil
string (date-time)
No
note
string
No
resetPeriod
object
No
Example request schema
Example request values
Code examples
Response Body
Status Code: 201
Example Response Schema
Example Response Values
Status Code: 4XX - Error response; X-Error-Code carries its code (see "Error codes").
Update Inbox Quota Settings
PATCH /api/v1/inboxes/{inboxPk}/credit-quotas/{id}/
Parameters
id
✅
string
inboxPk
✅
string
Request Body
Request Parameters
quotaLimit
string (decimal)
No
validUntil
string (date-time)
No
note
string
No
resetPeriod
string (enum: none, daily, weekly, monthly)
No
none: No Reset ; daily: Daily ; weekly: Weekly ; monthly: Monthly;
Example Request Schema
Example Request Values
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
Status Code: 4XX - Error response; X-Error-Code carries its code (see "Error codes").
Deactivate Inbox Quota Settings
DELETE /api/v1/inboxes/{inboxPk}/credit-quotas/{id}/
Parameters
id
✅
string
inboxPk
✅
string
Code Examples
Response Body
204
No response body
4XX
Error response; X-Error-Code carries its code (see "Error codes").
Set Whether an Inbox Requires a Quota
PATCH /api/v1/organizations/{organizationPk}/credit-quota-inboxes/{id}/credit-quota-required/
Parameters
id
✅
string
organizationPk
✅
string
A UUID string identifying this organization ID
Code Examples
Response Body
Status Code: 200
Example Response Schema
Example Response Values
Query your own quota
GET /api/v1/organizations/{organizationPk}/me/credit-quota/
Parameters
organizationPk
✅
string
A UUID string identifying this organization ID
Code examples
Response body
200
No response body
Query the quotas of your roles
GET /api/v1/organizations/{organizationPk}/me/group-credit-quotas/
Parameters
organizationPk
✅
string
A UUID string identifying this organization ID
Code examples
Response body
200
No response body
List pricing rules
GET /api/v1/credit/pricing-rules/
Code examples
Response body
Status code: 200
Example response structure
Example response values
Retrieve a pricing rule
GET /api/v1/credit/pricing-rules/{id}/
Parameters
id
✅
string
A UUID string identifying this Credit Pricing Rule.
Code examples
Response Content
Status Code: 200
Example Response Schema
Example Response Values
List Credit Items
GET /api/v1/credit/items/
Code Examples
Response Content
Status Code: 200
Example Response Schema
Example Response Values
Retrieve a Credit Item
GET /api/v1/credit/items/{id}/
Parameters
id
✅
string
A UUID string identifying this Credit Item.
Code Examples
Response Content
Status Code: 200
Example Response Schema
Example Response Values
Last updated
Was this helpful?