> ## Documentation Index
> Fetch the complete documentation index at: https://ago.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Workflow Secret



## OpenAPI

````yaml /openapi-v1.json put /api/v1/workflows/{workflow_id}/secrets/{name}
openapi: 3.1.0
info:
  title: AGO Public API
  version: 1.0.0
  description: Programmatic access to your AGO workspace.
servers:
  - url: https://{tenant_id}.api.useago.com
    description: AGO Public API v1
    variables:
      tenant_id:
        default: your-tenant-id
        description: Your AGO tenant identifier
security: []
paths:
  /api/v1/workflows/{workflow_id}/secrets/{name}:
    put:
      tags:
        - Workflows
      summary: Set Workflow Secret
      operationId: core_api_v1_controllers_workflows_set_workflow_secret
      parameters:
        - in: path
          name: workflow_id
          schema:
            format: uuid
            title: Workflow Id
            type: string
          required: true
        - in: path
          name: name
          schema:
            title: Name
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkflowSecretInput'
        required: true
      responses:
        '200':
          description: OK
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    WorkflowSecretInput:
      additionalProperties: false
      properties:
        kind:
          default: value
          description: >-
            value: sent as entered. oauth2_client_credentials: AGO exchanges it
            for an access token.
          enum:
            - value
            - oauth2_client_credentials
          title: Kind
          type: string
        value:
          description: >-
            The secret, or the OAuth2 client secret. Write-only: required on
            every update, never returned.
          maxLength: 8192
          minLength: 1
          title: Value
          type: string
        allowed_hosts:
          description: >-
            Host names the secret may be sent to, such as api.example.com.
            Requests elsewhere are refused.
          items:
            type: string
          maxItems: 20
          minItems: 1
          title: Allowed Hosts
          type: array
        token_url:
          default: ''
          description: OAuth2 token endpoint (https).
          maxLength: 500
          title: Token Url
          type: string
        client_id:
          default: ''
          description: OAuth2 client ID.
          maxLength: 500
          title: Client Id
          type: string
        scope:
          default: ''
          description: Optional OAuth2 scope.
          maxLength: 500
          title: Scope
          type: string
      required:
        - value
        - allowed_hosts
      title: WorkflowSecretInput
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.