bitcain docs
API Reference

Vault

Secure credential and secret management

Get Status

GET
/api/vault/status

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Response Body

application/json

curl -X GET "https://loading/api/vault/status"
{
  "property1": "string",
  "property2": "string"
}

Encrypt Data

POST
/api/vault/encrypt

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

data*string

Data to encrypt

Length1 <= length

Response Body

application/json

application/json

curl -X POST "https://loading/api/vault/encrypt" \  -H "Content-Type: application/json" \  -d '{    "data": "string"  }'
{
  "success": true,
  "message": "string",
  "data": {}
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Decrypt Data

POST
/api/vault/decrypt

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

encrypted_data*string

Encrypted data to decrypt

Length1 <= length

Response Body

application/json

application/json

curl -X POST "https://loading/api/vault/decrypt" \  -H "Content-Type: application/json" \  -d '{    "encrypted_data": "string"  }'
{
  "success": true,
  "message": "string",
  "data": {}
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}