Skip to main content
POST
/
secrets
Create a secret
curl --request POST \
  --url https://developer.qaip.com/api/v1/secrets \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "secret": "<string>",
  "type": "google_drive",
  "description": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "type": "google_drive",
  "last_update_time": 123,
  "creation_time": 123,
  "description": "<string>"
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
name
string
required

Name of the secret

Maximum string length: 200
secret
string
required

The secret value

Maximum string length: 5000
type
enum<string>
required

The type of the secret

Available options:
google_drive,
github,
notion
description
string

Description of the secret

Maximum string length: 1000

Response

Successfully created secret

id
string
required

Secret ID

name
string
required

Name of the secret

type
enum<string>
required

The type of the secret

Available options:
google_drive,
github,
notion
last_update_time
integer<int64>
required

Last updated time (Unix timestamp in seconds)

creation_time
integer<int64>
required

Creation time (Unix timestamp in seconds)

description
string

Description of the secret