Skip to main content
PUT
/
api
/
objects
Create an encrypted object
curl --request PUT \
  --url https://app.telentir.com/api/objects \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "keyId": "<string>",
  "content": "<string>",
  "authTag": "<string>",
  "relatedId": "<string>"
}
'
{
  "keyId": "<string>",
  "content": "<string>",
  "authTag": "<string>",
  "relatedId": "<string>",
  "id": "<string>",
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
keyId
string
required
content
string
required

Base64 ciphertext

authTag
string
required

Base64 auth tag

Response

Persisted object

keyId
string
required
content
string
required

Base64 ciphertext

authTag
string
required

Base64 auth tag

id
string
metadata
object
created_at
string<date-time>
updated_at
string<date-time>