openapi: 3.0.3 info: title: Retell SDK Add Community Voice Publish Agent Version API version: 3.0.0 contact: name: Retell Support url: https://www.retellai.com/ email: support@retellai.com license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html servers: - url: https://api.retellai.com description: The production server. security: - api_key: [] tags: - name: Publish Agent Version paths: /publish-agent-version/{agent_id}: post: description: Publish an existing draft version in place. operationId: publishAgentVersion parameters: - in: path name: agent_id schema: type: string minLength: 1 example: agent_xxx required: true description: Unique id of the agent. requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PublishAgentVersionRequest' responses: '200': description: Agent version published successfully. '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableContent' '500': $ref: '#/components/responses/InternalServerError' tags: - Publish Agent Version components: responses: Unauthorized: description: Unauthorized content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: API key is missing or invalid. BadRequest: description: Bad Request content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: Invalid request format, please check API reference. NotFound: description: Not Found content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: The requested resource was not found. UnprocessableContent: description: Unprocessable Content content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: Cannot find requested asset under given api key. InternalServerError: description: Internal Server Error content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: An unexpected server error occurred. schemas: PublishAgentVersionRequest: type: object required: - version properties: version: type: integer minimum: 0 example: 15 version_description: type: string example: Hotfix for transfer timeout securitySchemes: api_key: type: http scheme: bearer bearerFormat: string description: Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"