---
title: "POST /sources/plex/redeem_token/"
method: POST
path: "/sources/plex/redeem_token/"
tags: ["sources"]
---

# POST /sources/plex/redeem_token/

`POST /sources/plex/redeem_token/`

Redeem a plex token, check it's access to resources against what's allowed
for the source, and redirect to an authentication/enrollment flow.

## Query parameters

- `slug` string

## Request body

- PlexTokenRedeemRequest — Serializer to redeem a plex token
  - `plex_token` string, required

## Response `200`

- RedirectChallenge — Challenge type to redirect the client
  - `flow_info` ContextualFlowInfo — Contextual flow information for a challenge
    - `title` string
    - `background` string
    - `background_themed_urls` ThemedUrls — Themed URLs - maps theme names to URLs for light and dark themes
      - `light` string, nullable
      - `dark` string, nullable
    - `cancel_url` string, required
    - `layout` 'stacked' | 'content_left' | 'content_right' | 'sidebar_left' | 'sidebar_right' | 'sidebar_left_frame_background' | 'sidebar_right_frame_background', required
    - `messages` FlowMessage[]
      - `level` 'debug' | 'info' | 'success' | 'warning' | 'error', required
      - `message` string, required
  - `component` string
  - `response_errors` object
  - `to` string, required
  - `final_redirect` boolean

## Other responses

- `400` — Token not found
- `403` — Access denied

---

[API](https://skmtc.dev/goauthentik/apis/authentik.md) · [All operations](https://skmtc.dev/goauthentik/apis/authentik/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goauthentik/authentik/revisions/4e42e86021d7/schema)
