API reference
Quota and audit
Plan limits and current usage, and the owner's audit log.
GET
bearerAuthheader
AuthorizationBearer <token>A personal API token (pl4m_pat_…). The owner is resolved from the credential, never claimed by the caller.
owner_id?|nulllimit?LimitRange
1 <= value <= 200Default
50cursor?string|nullaction?|Filter, e.g. version.release.
Successful Response
application/json- response
A page of the caller's owner's audit log, newest first.
entries*array<>page*Cursor pagination envelope metadata.
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
bearerAuthheader
AuthorizationBearer <token>A personal API token (pl4m_pat_…). The owner is resolved from the credential, never claimed by the caller.
owner_id?|nullSuccessful Response
application/json- response
Limits and usage for the caller's owner.
limits*The limits of the owner's plan.
owner_id*Owner Idplan*OwnerPlanFree: 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.
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 }}