Last updated 3 months ago
Was this helpful?
A public key
DELETE /keys/{publicKey} HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Accept: */*
Key has been deleted
{ "revoked": true }
How many items to offset by for pagination
0
How many items to return at one time (max 64)
64
GET /keys HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Accept: */*
A paged array of keys
[ { "ips": [ "text" ], "alias": "My API", "key": "text", "created": "text", "expires": "text" } ]
A human-readable name for the key
My Key
POST /keys HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 33 { "ips": [ "text" ], "alias": "My Key" }
Key has been created
{ "ips": [ "text" ], "alias": "My API", "key": "text", "created": "text", "expires": "text", "jwt": "text" }
PATCH /keys/{publicKey} HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 33 { "ips": [ "text" ], "alias": "My Key" }
Key has been updated
{ "ips": [ "text" ], "alias": "My API", "key": "text", "created": "text", "expires": "text" }
POST /keys/temporary-key HTTP/1.1 Host: api-testnet.truvera.io CERTS-TOKEN: YOUR_API_KEY Content-Type: application/json Accept: */* Content-Length: 53 { "subaccount": 1, "selectedTeamId": 1, "isTestmode": true }
Temporary key has been created
{ "key": "text", "selectedTeamId": 1 }