Skip to Content
API reference

Quota and audit

Plan limits and current usage, and the owner's audit log.

GET
/v1/audit

Authorization

bearerAuth
headerAuthorizationBearer <token>

A personal API token (pl4m_pat_…). The owner is resolved from the credential, never claimed by the caller.

Query Parameters

owner_id?|null
limit?Limit
Range1 <= value <= 200
Default50
cursor?string|null
action?|

Filter, e.g. version.release.

Header Parameters

authorization?string|null

Response Body

Successful Response

application/json
  1. response

A page of the caller's owner's audit log, newest first.

entries*array<>
page*

Cursor pagination envelope metadata.

Example Request
curl -X GET 'https://app.pl4m.com/api/v1/audit' \  -H 'Authorization: Bearer '
Example Response
{  "entries": [    {      "action": "artifact.create",      "actor_credential": "api_token",      "actor_token_id": "1271939e-9ab3-4c4a-9ee2-05abb3d106d4",      "actor_user_id": "d6ed4497-4325-4995-9f49-e288b7192e46",      "at": "2019-08-24T14:15:22Z",      "detail": {},      "id": 0,      "ip": "string",      "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",      "request_id": "string",      "target_id": "d3bcdc92-4191-401b-ad0c-42056c6efab9",      "target_type": "artifact",      "user_agent": "string"    }  ],  "page": {    "limit": 1,    "next_cursor": "string"  }}
GET
/v1/quota

Authorization

bearerAuth
headerAuthorizationBearer <token>

A personal API token (pl4m_pat_…). The owner is resolved from the credential, never claimed by the caller.

Query Parameters

owner_id?|null

Header Parameters

authorization?string|null

Response Body

Successful Response

application/json
  1. response

Limits and usage for the caller's owner.

limits*

The limits of the owner's plan.

owner_id*Owner Id
plan*OwnerPlan

Free: a publish goes live. Pro: a publish is a draft until it is released.

Value in"free""pro"
usage*

What the caller's owner is currently using.

Example Request
curl -X GET 'https://app.pl4m.com/api/v1/quota' \  -H 'Authorization: Bearer '
Example Response
{  "limits": {    "max_artifacts": 1,    "max_dist_bytes": 1,    "max_dist_file_bytes": 1,    "max_dist_files": 1,    "max_dist_unpacked_bytes": 1,    "max_single_file_bytes": 1,    "max_versions_kept": 1,    "plan": "free",    "publishes_per_minute": 1  },  "owner_id": "string",  "plan": "free",  "usage": {    "artifact_count": 0,    "stored_bytes": 0,    "version_count": 0  }}