Api

List Custom Units

GET
/v1/custom-units

The custom units of the Project, oldest first (decision 0043). A rule's custom reward gives a quantity of one of them.

Authorization

WorkspaceApiKey
X-Api-Key<token>

Workspace-owned Better Auth API key of one environment (Sandbox or Live); it authorizes the Projects of that environment in its Workspace. A Project of the other environment returns 403 ENVIRONMENT_MISMATCH. Never expose it in the browser.

In: header

Query Parameters

projectId*string
Match\S
Length1 <= length <= 512

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/custom-units?projectId=string"
{  "customUnits": [    {      "id": "string",      "key": "string",      "name": "string",      "namePlural": "string",      "archived": true,      "createdAt": "string",      "updatedAt": "string"    }  ],  "success": true}