Keys
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
offsetinteger · int32OptionalDefault:
How many items to offset by for pagination
0limitinteger · int32 · min: 1 · max: 64OptionalDefault:
How many items to return at one time (max 64)
64Responses
200
A paged array of keys
application/json
400
Application error
application/json
get
/keysGET /keys HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"ips": [
"text"
],
"alias": "My API",
"key": "text",
"created": "text",
"expires": "text"
}
]Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
ipsstring[]Optional
aliasstring | nullableOptionalExample:
A human-readable name for the key
My KeyResponses
200
Key has been created
application/json
Responseall of
400
Something went wrong.
application/json
403
Forbidden
application/json
post
/keysPOST /keys HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"ips": [
"text"
],
"alias": "My Key"
}{
"ips": [
"text"
],
"alias": "My API",
"key": "text",
"created": "text",
"expires": "text",
"jwt": "text"
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
publicKeystringRequired
A public key
Responses
200
Key has been deleted
application/json
400
Something went wrong.
application/json
404
Key was not found.
application/json
delete
/keys/{publicKey}DELETE /keys/{publicKey} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"revoked": true
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
publicKeystringRequired
A public key
Body
ipsstring[]Optional
aliasstring | nullableOptionalExample:
A human-readable name for the key
My KeyResponses
200
Key has been updated
application/json
400
Something went wrong.
application/json
404
Key was not found.
application/json
patch
/keys/{publicKey}PATCH /keys/{publicKey} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"ips": [
"text"
],
"alias": "My Key"
}{
"ips": [
"text"
],
"alias": "My API",
"key": "text",
"created": "text",
"expires": "text"
}Authorizations
CERTS-TOKENstringRequired
Body
subaccountintegerOptional
selectedTeamIdintegerOptional
isTestmodebooleanOptional
Responses
200
Temporary key has been created
application/json
400
Application error
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
post
/keys/temporary-keyPOST /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
}{
"key": "text",
"selectedTeamId": 1
}Last updated
Was this helpful?