sources_plex_redeem_token_create
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.
Request
Query Parameters
slug string
- application/json
Body
required
plex_token stringrequired
Possible values: non-empty
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
type ChallengeChoices (string)required
Possible values: [native
, shell
, redirect
]
flow_info
object
Contextual flow information for a challenge
title string
background string
cancel_url stringrequired
layout ContextualFlowInfoLayoutEnum (string)required
Possible values: [stacked
, content_left
, content_right
, sidebar_left
, sidebar_right
]
component string
Default value: xak-flow-redirect
response_errors
object
property name*
object[]
string stringrequired
code stringrequired
to stringrequired
{
"type": "native",
"flow_info": {
"title": "string",
"background": "string",
"cancel_url": "string",
"layout": "stacked"
},
"component": "xak-flow-redirect",
"response_errors": {},
"to": "string"
}
Token not found
Access denied
Loading...