treg.to Secrets API
The Secrets API from treg.to — 2 operation(s) for secrets.
The Secrets API from treg.to — 2 operation(s) for secrets.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/treg-to:treg-to-secrets-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: treg Secrets API
version: 0.0.1
tags:
- name: Secrets
paths:
/secrets:
post:
summary: Create Secret
operationId: create_secret_secrets_post
parameters:
- name: x-treg-token
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Token
- name: x-treg-org
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Org
- name: treg_session
in: cookie
required: false
schema:
type: string
default: ''
title: Treg Session
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SecretIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Create Secret Secrets Post
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Secrets
get:
summary: List Secrets
operationId: list_secrets_secrets_get
parameters:
- name: x-treg-token
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Token
- name: x-treg-org
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Org
- name: treg_session
in: cookie
required: false
schema:
type: string
default: ''
title: Treg Session
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
type: object
additionalProperties: true
title: Response List Secrets Secrets Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Secrets
/secrets/{secret_id}:
patch:
summary: Update Secret
operationId: update_secret_secrets__secret_id__patch
parameters:
- name: secret_id
in: path
required: true
schema:
type: integer
title: Secret Id
- name: x-treg-token
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Token
- name: x-treg-org
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Org
- name: treg_session
in: cookie
required: false
schema:
type: string
default: ''
title: Treg Session
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SecretUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Update Secret Secrets Secret Id Patch
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Secrets
delete:
summary: Delete Secret
operationId: delete_secret_secrets__secret_id__delete
parameters:
- name: secret_id
in: path
required: true
schema:
type: integer
title: Secret Id
- name: x-treg-token
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Token
- name: x-treg-org
in: header
required: false
schema:
type: string
default: ''
title: X-Treg-Org
- name: treg_session
in: cookie
required: false
schema:
type: string
default: ''
title: Treg Session
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Delete Secret Secrets Secret Id Delete
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Secrets
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
SecretUpdate:
properties:
name:
anyOf:
- type: string
- type: 'null'
title: Name
value:
anyOf:
- type: string
- type: 'null'
title: Value
kind:
anyOf:
- type: string
- type: 'null'
title: Kind
type: object
title: SecretUpdate
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
SecretIn:
properties:
name:
type: string
title: Name
value:
type: string
title: Value
kind:
type: string
title: Kind
default: env
bundle_id:
anyOf:
- type: integer
- type: 'null'
title: Bundle Id
type: object
required:
- name
- value
title: SecretIn