This page provides practical curl examples for interacting with the Pragmatiks API.
Setup
Set your authentication token as an environment variable:
Resources
List All Resources
Response:
Filter Resources by Provider
Filter Resources by Type
Get a Specific Resource
Resource IDs use the format provider:resource:name and must be URL-encoded. The colon : becomes %3A.
Create a Resource (Draft)
Response:
Commit a Resource (Submit for Processing)
Change lifecycle_state to pending to submit the resource for processing:
Update an Existing Resource
Apply changes to an existing resource:
Delete a Resource
Response: 204 No Content
Dead Letter Operations
List Dead Letter Events
Events that failed processing are stored in the dead letter queue:
Response:
Filter by Provider
Get a Specific Dead Letter Event
Retry a Failed Event
Requeue a single event for processing:
Retry All Failed Events
Response:
Delete a Dead Letter Event
Bulk Delete Dead Letter Events
Delete all events:
Delete events for a specific provider:
Provider Operations
Push Provider Code
Upload provider code to start a build:
Response:
Check Build Status
Poll the build status until completion:
Response (in progress):
Response (success):
Stream Build Logs
Deploy a Provider
Deploy the provider to a specific version (or latest if omitted):
Response:
Check Deployment Status
Response (available):
Resource Definitions
Register a Resource Type
Providers register resource types to declare what they can manage:
Unregister a Resource Type
Health Check
The health endpoint does not require authentication:
Response: