openapi: 3.2.0 info: description: The One API. Universal API integration platform for AI agents and applications. license: name: '' title: One AI Runner Secrets API version: 5.35.0 tags: - description: Manage secrets for AI agent runner pods name: AI Runner Secrets paths: /v1/ai-runners/organizations/{org_id}/projects/{project_id}/{agent_id}/secrets: get: operationId: list_project_ai_runner_secrets parameters: - description: Organization ID in: path name: org_id required: true schema: format: uuid type: string - description: Project ID in: path name: project_id required: true schema: format: uuid type: string - description: AI agent ID in: path name: agent_id required: true schema: format: uuid type: string responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/PodSecretView' type: array description: Secrets listed '400': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Invalid request '402': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Quota exceeded — upgrade plan '403': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Insufficient permissions '404': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Resource not found '500': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Internal server error '502': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Upstream service unavailable '503': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Service unavailable security: - X-Pica-Secret: [] tags: - AI Runner Secrets summary: List project ai runner secrets x-summary-source: derived post: operationId: create_project_ai_runner_secret parameters: - description: Organization ID in: path name: org_id required: true schema: format: uuid type: string - description: Project ID in: path name: project_id required: true schema: format: uuid type: string - description: AI agent ID in: path name: agent_id required: true schema: format: uuid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CreatePodSecretPayload' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/PodSecretView' description: Secret created '400': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Invalid request '402': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Quota exceeded — upgrade plan '403': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Insufficient permissions '404': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Resource not found '500': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Internal server error '502': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Upstream service unavailable '503': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Service unavailable security: - X-Pica-Secret: [] tags: - AI Runner Secrets summary: Create project ai runner secret x-summary-source: derived /v1/ai-runners/organizations/{org_id}/projects/{project_id}/{agent_id}/secrets/{secret_id}: delete: operationId: delete_project_ai_runner_secret parameters: - description: Organization ID in: path name: org_id required: true schema: format: uuid type: string - description: Project ID in: path name: project_id required: true schema: format: uuid type: string - description: AI agent ID in: path name: agent_id required: true schema: format: uuid type: string - description: Secret ID in: path name: secret_id required: true schema: format: uuid type: string responses: '200': description: Secret deleted '400': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Invalid request '402': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Quota exceeded — upgrade plan '403': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Insufficient permissions '404': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Resource not found '500': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Internal server error '502': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Upstream service unavailable '503': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Service unavailable security: - X-Pica-Secret: [] tags: - AI Runner Secrets summary: Delete project ai runner secret x-summary-source: derived /v1/ai-runners/organizations/{org_id}/{agent_id}/secrets: get: operationId: list_org_ai_runner_secrets parameters: - description: Organization ID in: path name: org_id required: true schema: format: uuid type: string - description: AI agent ID in: path name: agent_id required: true schema: format: uuid type: string responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/PodSecretView' type: array description: Secrets listed '400': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Invalid request '402': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Quota exceeded — upgrade plan '403': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Insufficient permissions '404': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Resource not found '500': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Internal server error '502': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Upstream service unavailable '503': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Service unavailable security: - X-Pica-Secret: [] tags: - AI Runner Secrets summary: List org ai runner secrets x-summary-source: derived post: operationId: create_org_ai_runner_secret parameters: - description: Organization ID in: path name: org_id required: true schema: format: uuid type: string - description: AI agent ID in: path name: agent_id required: true schema: format: uuid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CreatePodSecretPayload' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/PodSecretView' description: Secret created '400': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Invalid request '402': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Quota exceeded — upgrade plan '403': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Insufficient permissions '404': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Resource not found '500': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Internal server error '502': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Upstream service unavailable '503': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Service unavailable security: - X-Pica-Secret: [] tags: - AI Runner Secrets summary: Create org ai runner secret x-summary-source: derived /v1/ai-runners/organizations/{org_id}/{agent_id}/secrets/{secret_id}: delete: operationId: delete_org_ai_runner_secret parameters: - description: Organization ID in: path name: org_id required: true schema: format: uuid type: string - description: AI agent ID in: path name: agent_id required: true schema: format: uuid type: string - description: Secret ID in: path name: secret_id required: true schema: format: uuid type: string responses: '200': description: Secret deleted '400': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Invalid request '402': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Quota exceeded — upgrade plan '403': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Insufficient permissions '404': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Resource not found '500': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Internal server error '502': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Upstream service unavailable '503': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Service unavailable security: - X-Pica-Secret: [] tags: - AI Runner Secrets summary: Delete org ai runner secret x-summary-source: derived /v1/ai-runners/{agent_id}/secrets: get: operationId: list_ai_runner_secrets parameters: - description: AI agent ID in: path name: agent_id required: true schema: format: uuid type: string responses: '200': content: application/json: schema: items: $ref: '#/components/schemas/PodSecretView' type: array description: Secrets listed '400': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Invalid request '402': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Quota exceeded — upgrade plan '403': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Insufficient permissions '404': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Resource not found '500': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Internal server error '502': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Upstream service unavailable '503': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Service unavailable security: - X-Pica-Secret: [] tags: - AI Runner Secrets summary: List ai runner secrets x-summary-source: derived post: operationId: create_ai_runner_secret parameters: - description: AI agent ID in: path name: agent_id required: true schema: format: uuid type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/CreatePodSecretPayload' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/PodSecretView' description: Secret created '400': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Invalid request '402': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Quota exceeded — upgrade plan '403': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Insufficient permissions '404': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Resource not found '500': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Internal server error '502': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Upstream service unavailable '503': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Service unavailable security: - X-Pica-Secret: [] tags: - AI Runner Secrets summary: Create ai runner secret x-summary-source: derived /v1/ai-runners/{agent_id}/secrets/{secret_id}: delete: operationId: delete_ai_runner_secret parameters: - description: AI agent ID in: path name: agent_id required: true schema: format: uuid type: string - description: Secret ID in: path name: secret_id required: true schema: format: uuid type: string responses: '200': description: Secret deleted '400': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Invalid request '402': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Quota exceeded — upgrade plan '403': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Insufficient permissions '404': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Resource not found '500': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Internal server error '502': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Upstream service unavailable '503': content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' description: Service unavailable security: - X-Pica-Secret: [] tags: - AI Runner Secrets summary: Delete ai runner secret x-summary-source: derived components: schemas: ErrorResponse: properties: correlationId: example: 550e8400-e29b-41d4-a716-446655440000 type: string key: example: http_error type: string message: example: Authentication required type: string status: example: 401 format: int32 minimum: 0 type: integer type: example: http_error type: string required: - correlationId - key - message - type - status type: object CreatePodSecretPayload: properties: data: additionalProperties: type: string propertyNames: type: string type: object description: type: - string - 'null' name: type: string required: - name - data type: object PodSecretView: properties: active: type: boolean agentId: format: uuid type: - string - 'null' createdAt: format: date-time type: string description: type: - string - 'null' id: format: uuid type: string k8sNamespace: type: string k8sSecretName: type: string name: type: string organizationId: format: uuid type: - string - 'null' projectId: format: uuid type: - string - 'null' tags: items: type: string type: array updatedAt: format: date-time type: string userId: format: uuid type: string version: type: string required: - id - userId - name - k8sSecretName - k8sNamespace - createdAt - updatedAt - version - tags - active type: object securitySchemes: Bearer: scheme: bearer type: http OAuth2: flows: authorizationCode: authorizationUrl: https://api.withone.ai/oauth/authorize scopes: org:ai_skills:read: Read organization AI skills org:ai_skills:write: Create, update, and delete organization AI skills org:authkit:read: Read organization AuthKit resources org:authkit:write: Create, update, and delete organization AuthKit resources org:connections:read: Read organization connections org:connections:write: Create, update, and delete organization connections org:projects:read: Read organization projects org:projects:write: Create, update, and delete organization projects org:secrets:read: Read organization secrets org:secrets:write: Create, update, and delete organization secrets org:workflows:executions:read: Read organization workflow executions org:workflows:executions:write: Create, update, and delete organization workflow executions org:workflows:read: Read organization workflows org:workflows:write: Create, update, and delete organization workflows project:ai_skills:read: Read project AI skills project:ai_skills:write: Create, update, and delete project AI skills project:authkit:read: Read project AuthKit resources project:authkit:write: Create, update, and delete project AuthKit resources project:connections:read: Read project connections project:connections:write: Create, update, and delete project connections project:secrets:read: Read project secrets project:secrets:write: Create, update, and delete project secrets project:workflows:executions:read: Read project workflow executions project:workflows:executions:write: Create, update, and delete project workflow executions project:workflows:read: Read project workflows project:workflows:write: Create, update, and delete project workflows user:ai_skills:read: Read your personal AI skills user:ai_skills:write: Create, update, and delete your personal AI skills user:authkit:read: Read your personal AuthKit resources user:authkit:write: Create, update, and delete your personal AuthKit resources user:connections:read: Read your personal connections user:connections:write: Create, update, and delete your personal connections user:secrets:read: Read your personal secrets user:secrets:write: Create, update, and delete your personal secrets user:workflows:executions:read: Read your personal workflow executions user:workflows:executions:write: Create, update, and delete your personal workflow executions user:workflows:read: Read your personal workflows user:workflows:write: Create, update, and delete your personal workflows tokenUrl: https://api.withone.ai/oauth/token type: oauth2 Session: in: cookie name: withone type: apiKey X-One-Connection-Key: in: header name: X-One-Connection-Key type: apiKey X-One-Secret: in: header name: X-One-Secret type: apiKey X-Pica-Connection-Key: in: header name: X-One-Connection-Key type: apiKey X-Pica-Secret: in: header name: X-One-Secret type: apiKey