Secrets

Create an org secret

POST
/v1/orgs/{org}/secrets
AuthorizationBearer <token>

API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.

In: header

Path Parameters

org*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

key*string
Match^[a-z0-9][a-z0-9_-]*$
Length1 <= length <= 128
scope*string
Value in"org" | "project" | "personal"
type*string
Default"generic"
Value in"generic" | "git"
value*string
Length1 <= length

Response Body

application/json

application/problem+json

curl -X POST "https://api-dev.tektona.ai/v1/orgs/string/secrets" \  -H "Content-Type: application/json" \  -d '{    "key": "string",    "scope": "org",    "type": "generic",    "value": "string"  }'
{  "$schema": "https://api-dev.tektona.ai/schemas/SecretCreateBody.json",  "secret": {    "created_at": "string",    "id": "string",    "key": "string",    "owner_user_id": "string",    "scope": "org",    "type": "generic",    "updated_at": "string"  }}