Secrets
Create a project secret
Authorization
apiKey AuthorizationBearer <token>
API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
org*string
project*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
key*string
Match
^[a-z0-9][a-z0-9_-]*$Length
1 <= length <= 128scope*string
Value in
"org" | "project" | "personal"type*string
Default
"generic"Value in
"generic" | "git"value*string
Length
1 <= lengthResponse Body
application/json
application/problem+json
curl -X POST "https://api-dev.tektona.ai/v1/orgs/string/projects/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" }}{ "$schema": "https://api-dev.tektona.ai/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}