sources_plex_redeem_token_authenticated_create
POST/api/v3//sources/plex/redeem_token_authenticated/
Redeem a plex token for an authenticated user, creating a connection
Request
Query Parameters
slug string
- application/json
Bodyrequired
plex_tokenstringrequired
Possible values: non-empty
Responses
- 204
- 400
- 403
No response body
Token not found
Access denied
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "/api/v3/sources/plex/redeem_token_authenticated/");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"plex_token\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());