Keys

List all keys

get
Authorizations
Query parameters
offsetinteger · int32Optional

How many items to offset by for pagination

Default: 0
limitinteger · int32 · min: 1 · max: 64Optional

How many items to return at one time (max 64)

Default: 64
Responses
200
A paged array of keys
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"
  }
]

Create a key

post
Authorizations
Body
ipsstring[]Optional
aliasstring | nullableOptional

A human-readable name for the key

Example: My Key
Responses
200
Key has been created
application/json
Responseall of
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"
}

Delete a key

delete
Authorizations
Path parameters
publicKeystringRequired

A public key

Responses
200
Key has been deleted
application/json
delete
DELETE /keys/{publicKey} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer JWT
Accept: */*
{
  "revoked": true
}

Update a key

patch
Authorizations
Path parameters
publicKeystringRequired

A public key

Body
ipsstring[]Optional
aliasstring | nullableOptional

A human-readable name for the key

Example: My Key
Responses
200
Key has been updated
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"
}

Certs internal route, not for typical usage. Generates a temporary key

post
Authorizations
Body
subaccountintegerOptional
selectedTeamIdintegerOptional
isTestmodebooleanOptional
Responses
200
Temporary key has been created
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?