Current User (Me)
All endpoints require Bearer Token authentication.
Get Current User Info
Response
| Field | Type | Description |
|---|---|---|
permissions | []string | List of permission points for the current user in their organization |
Update Current User
Request Body
| Field | Type |
|---|---|
username | string |
Response
Usage Statistics (Monthly)
Query Parameters
| Parameter | Type | Description |
|---|---|---|
year | int | Optional, defaults to current month |
month | int | Optional, defaults to current month |
Response
Usage Statistics (Daily)
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
start | string | Yes | Start date, format YYYY-MM-DD |
end | string | Yes | End date, format YYYY-MM-DD |
Response
Usage Statistics (by Model)
Query Parameters — Same as monthly statistics.
Response
Get My Credits
Response
Get My Invitation Code
Response
Reset Invitation Code
Response — Same as "Get My Invitation Code".
Redemption
Request Body
| Field | Type | Required |
|---|---|---|
code | string | Yes |
Response