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