---
descriptions:
  logout_authorize:
    profile_id: |
      The unique identifier of the WorkOS Profile to log out.
  logout_authorize_response:
    logout_url: >
      The URL to redirect the user to in order to log out ([Logout
      Redirect](/reference/sso/logout) endpoint ready to use)
    logout_token: >
      The logout token to be used in the [Logout
      Redirect](/reference/sso/logout) endpoint.
reference:
  curl:
    - url: /reference/sso/logout/authorize
      key: logout_authorize
      id: logout_authorize
      title: /sso/logout/authorize
      type: POST
      parameters:
        - key: profile_id
          type: string
          description: (logout_authorize.profile_id)
      returns:
        - key: anonymous
          type: object
          unwrap: true
          properties:
            - key: logout_url
              type: string
              description: (logout_authorize_response.logout_url)
            - key: logout_token
              type: string
              description: (logout_authorize_response.logout_token)
originalPath: .tmp-workos-clone/packages/docs/content/reference/sso/logout/authorize.mdx
---

## Logout Authorize

You should call this endpoint from your server to generate a logout token which is required for
the [Logout Redirect](/reference/sso/logout) endpoint.

<CodeBlock referenceId="logout_authorize">
  <CodeBlockTab title="Request" file="logout-authorize-request" />
  <CodeBlockTab title="Response" file="logout-authorize-response" />
</CodeBlock>
