API reference
Every endpoint of the Limitry API, by area. Each one shows the same call in TypeScript, Python, the CLI and curl, with its fields.
- To try a call in your browser, use the API playground (opens in a new tab). Each endpoint below links to its own place there.
- For tools that read OpenAPI, the document is at https://api.limitry.com/v1/openapi.json.
- Before your first call, see Authentication and Errors and rate limits.
Checks
Section titled “Checks”- Check whether a subject may act:
checks.create() - List checks:
checks.list()
Reservations
Section titled “Reservations”- Commit a reservation:
reservations.commit() - Extend a reservation:
reservations.extend() - Get a reservation:
reservations.get() - Release a reservation:
reservations.release()
Limits
Section titled “Limits”- Archive a limit:
limits.archive() - Create a limit:
limits.create() - Add credits to a balance:
limits.credits.create() - Get a credit:
limits.credits.get() - List a balance’s credits:
limits.credits.list() - Get a limit:
limits.get() - List limits:
limits.list() - Restore an archived limit:
limits.restore() - Sync limits from a list:
limits.sync() - Change a limit:
limits.update()
Subjects
Section titled “Subjects”- Get a subject:
subjects.get() - Name many subjects:
subjects.import() - List subjects:
subjects.list() - Erase a subject’s name and labels:
subjects.names.delete() - Reset a subject’s limits:
subjects.reset() - Get where a subject stands:
subjects.standing() - Update a subject:
subjects.update()
- Get every limit’s usage at once:
usage.overview() - Get a limit’s usage over time:
usage.query() - List who is using a limit:
usage.subjects()
Workspace
Section titled “Workspace”- Get the current workspace:
workspace.get() - List pending invitations:
workspace.invitations.list() - List workspace members:
workspace.members.list() - Get your plan’s usage this period:
workspace.planUsage.get() - List teams:
workspace.teams.list()
Webhooks
Section titled “Webhooks”- List event types:
workspace.eventTypes.list() - List an endpoint’s deliveries:
workspace.webhookDeliveries.list() - Redeliver an event:
workspace.webhookDeliveries.redeliver() - Add a webhook endpoint:
workspace.webhookEndpoints.create() - Remove a webhook endpoint:
workspace.webhookEndpoints.delete() - Re-enable a webhook endpoint:
workspace.webhookEndpoints.enable() - Get a webhook endpoint:
workspace.webhookEndpoints.get() - List webhook endpoints:
workspace.webhookEndpoints.list() - Send a test event:
workspace.webhookEndpoints.test() - Update a webhook endpoint:
workspace.webhookEndpoints.update()
Approvals
Section titled “Approvals”- List the actions you can ask approval for:
workspace.approvalActions.list() - Ask a person to approve an action:
workspace.approvalRequests.create() - Check an approval request:
workspace.approvalRequests.get() - Redeem an approved request:
workspace.approvalRequests.redeem()
Audit events
Section titled “Audit events”- List workspace audit events:
workspace.auditEvents.list()
Personal access tokens
Section titled “Personal access tokens”- Get the current user:
user.me() - Revoke the token making this request:
user.revokeToken()