postApikeys
Create an API key that represents a permanent method of authentication to the API. The API key remains active until marked as inactive or deleted.
In: header
Header Parameters
A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.
A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.
Request Body
application/json
Create API Key Request
Create API Key Request
The login under which to perform this action. If you do not supply a login in this field, then the API defaults to the login that is currently authenticated.
The name for the key. An apikey may represent a private (secret) key code that is used internally (server-side) by the application authenticating to the API.
A private key should never be exposed to external/untrusted entities and should be immediately deactivated if compromised. All API resources and actions can be accessed/performed with a private apikey.
Description of ApiKeys.
Whether this API key should have access to only public resources. Public resources include Transactions, Tokens, Customers, and Items. All other resources are private. Valid Values
0- The key can also access private resources.1- The key can only access public resources.
Value in
- 0
- 1
Whether or not an AuthToken is required as part of the authentication when this Apikey is used.
0- The authToken mechanism is disabled.1- The authToken mechanism is required for 'POST' and 'DELETE' requests.
Value in
- 0
- 1
Whether this resource is marked as inactive.
0- Active1- Inactive
Value in
- 0
- 1
Whether this resource is marked as frozen.
0- Not Frozen1- Frozen
Value in
- 0
- 1
Response Body
application/json
application/json
curl -X POST "https://example.com/apikeys" \ -H "Content-Type: application/json" \ -d '{ "id": "t1_api_676a5353d67a6df2c47b198", "created": "2024-12-24 01:23:15.8882", "modified": "2024-12-24 01:23:15.8882", "creator": "t1_log_651fec1e202e349386ba321", "modifier": "t1_log_651fec1e202e349386ba321", "login": "t1_log_651fec1e202e349386ba321", "key": "f0d9fd14f9795590c01dd2c8083a35d7", "name": "api", "description": "API KEYS", "public": 0, "inactive": 0, "frozen": 0, "token": 0 }'{ "response": { "data": [ { "id": "t1_api_676a5353d67a6df2c47b198", "created": "2024-12-24 01:23:15.8882", "modified": "2024-12-24 01:23:15.8882", "creator": "t1_log_651fec1e202e349386ba321", "modifier": "t1_log_651fec1e202e349386ba321", "login": "t1_log_651fec1e202e349386ba321", "key": "f0d9fd14f9795590c01dd2c8083a35d7", "name": "api", "description": "API KEYS", "public": 0, "inactive": 0, "frozen": 0, "token": 0 } ], "details": { "requestId": 1, "totals": [], "page": { "current": 1, "last": 1, "hasMore": false } }, "errors": [] }}