openapi: 3.0.3 info: title: Clerk Backend Account Portal SAML API x-logo: url: https://clerk.com/_next/image?url=%2Fimages%2Fclerk-logo.svg&w=96&q=75 altText: Clerk docs href: https://clerk.com/docs contact: email: support@clerk.com name: Clerk Platform Team url: https://clerk.com/support description: 'The Clerk REST Backend API, meant to be accessed by backend servers. ### Versions When the API changes in a way that isn''t compatible with older versions, a new version is released. Each version is identified by its release date, e.g. `2025-04-10`. For more information, please see [Clerk API Versions](https://clerk.com/docs/versioning/available-versions). Please see https://clerk.com/docs for more information.' version: '2025-11-10' termsOfService: https://clerk.com/terms license: name: MIT url: https://github.com/clerk/openapi-specs/blob/main/LICENSE servers: - url: https://api.clerk.com/v1 security: - bearerAuth: [] tags: - name: SAML description: Used in authentication flows using SAML. paths: /v1/saml/metadata/{saml_connection_id}.xml: get: summary: SAML Metadata description: The Service Provider's SAML metadata operationId: samlMetadata security: - {} - DevBrowser: [] tags: - SAML parameters: - in: path name: saml_connection_id required: true schema: type: string description: The ID of the SAML Connection responses: '200': description: OK '400': $ref: '#/components/responses/ClerkErrors' '404': $ref: '#/components/responses/ClerkErrors' /v1/saml/acs/{saml_connection_id}: post: summary: SAML ACS description: 'The SAML Assertion Consumer Service (ACS) endpoint, which processes SAML Responses by the IdP. ' operationId: acs security: - {} - DevBrowser: [] tags: - SAML parameters: - in: path name: saml_connection_id required: true schema: type: string description: The ID of the SAML Connection responses: '302': description: OK '303': description: OK '400': $ref: '#/components/responses/ClerkErrors' '401': $ref: '#/components/responses/ClerkErrors' '403': $ref: '#/components/responses/ClerkErrors' '404': $ref: '#/components/responses/ClerkErrors' components: schemas: ClerkErrors: type: object properties: errors: type: array items: $ref: '#/components/schemas/ClerkError' meta: type: object clerk_trace_id: type: string required: - errors ClerkError: type: object properties: message: type: string long_message: type: string code: type: string meta: type: object required: - message - long_message - code responses: ClerkErrors: description: Request was not successful content: application/json: schema: $ref: '#/components/schemas/ClerkErrors' securitySchemes: bearerAuth: type: http scheme: bearer description: Secret key, obtained under "API Keys" in the Clerk Dashboard. bearerFormat: sk__ externalDocs: url: https://clerk.com/docs x-speakeasy-retries: strategy: backoff backoff: initialInterval: 500 maxInterval: 60000 maxElapsedTime: 3600000 exponent: 1.5 statusCodes: - 5XX retryConnectionErrors: true