GET, POST, PATCH, and DELETE. Other related conventions for our API can be found in the section below.
JSON Conventions
- Resources are addressable by a UUIDv4
idproperty. - Property names are always in
snake_case. - Guardian does not support empty strings. To unset a string value, use an explicit
nullvalue instead. - Temporal data is encoded in ISO 8601 strings.
Authentication
Guardian supports two types of authentication to accommodate different access patterns and security requirements.API Keys
Standard API keys are used for most Guardian operations and are passed via the HTTP headerx-api-key.
Admin Tokens
Admin tokens provide elevated privileges for administrative operations such as API key management. They are passed via the HTTP headerx-admin-token.
API Use
Cluster-based Deployment
Guardian is provided as a service of the Hellgate Cloud Platform implementing Composable Payment Architecture. Each instance is accessible via a unique cluster identifier:Pagination
Endpoints that return lists of objects support pagination. Guardian uses simple offset-based pagination with the following query parameters:| Parameter | Type | Description |
|---|---|---|
limit | integer | The maximum amount of objects to be returned per request. Default is 50. |
after | string (uuid) | The id of the element from which on-wards the new list is determined. It is typically the last element from the previous list. |
Request Errors
Guardian uses standard HTTP status codes to indicate client errors on the API level.- Invalid Requests - HTTP 4xx
- Unprocessable Content - HTTP 422
The response payload for processing errors follows a standard format.
Security Considerations
Guardian handles sensitive payment card data and requires strict security practices:- All communication must use HTTPS
- API keys and admin tokens must be stored securely
- PCI compliance requirements apply based on your integration approach
- Session-based tokenization (SAQ-A+) is recommended over direct PAN handling (SAQ-D+)