Skip to main content
POST
Encrypt with a secret key

Authorizations

Authorization
string
header
required

A Fly API token with access to the requested organization or resource. Send it as Authorization: Bearer <Fly API token>.

Path Parameters

app_name
string
required

Fly App Name

secret_name
string
required

Secret key name

Query Parameters

min_version
string

Minimum secrets version to read, as returned by the endpoints that set or delete secrets. Use it to read your own writes.

Body

application/json

Encrypt with secret key request

associated_data
string<byte>

Additional data to authenticate but not encrypt, base64-encoded. The same data must be passed when decrypting.

Pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
plaintext
string<byte>

Data to encrypt, base64-encoded.

Pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$

Response

OK

ciphertext
string<byte>

Encrypted data, base64-encoded.

Pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$