Перейти к основному содержанию
POST
/
v0
/
secrets
Create key
curl --request POST \
  --url https://api.qudata.ai/v0/secrets \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "secret_type": "ssh",
  "name": "<string>",
  "description": "<string>",
  "value": "<string>"
}'
{
  "ok": true,
  "data": {
    "id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "user_id": "<string>",
    "secret_type": "ssh",
    "name": "<string>",
    "description": "<string>",
    "value": "<string>",
    "renter_id": "<string>"
  }
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
secret_type
enum<string>
required
Available options:
ssh
value
string
required
name
string | null
description
string | null

Response

Successful Response

ok
boolean
default:true
data
object | null
I