sources_oauth_source_types_list
GET/api/v3//sources/oauth/source_types/
Get all creatable source types. If ?name is set, only returns the type for <name>. If <name> isn't found, returns the default type.
Request
Query Parameters
name string
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
namestringrequired
verbose_namestringrequired
urls_customizablebooleanrequired
request_token_urlstringnullablerequired
authorization_urlstringnullablerequired
access_token_urlstringnullablerequired
profile_urlstringnullablerequired
oidc_well_known_urlstringnullablerequired
oidc_jwks_urlstringnullablerequired
[
{
"name": "string",
"verbose_name": "string",
"urls_customizable": true,
"request_token_url": "string",
"authorization_url": "string",
"access_token_url": "string",
"profile_url": "string",
"oidc_well_known_url": "string",
"oidc_jwks_url": "string"
}
]
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
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.Get, "/api/v3/sources/oauth/source_types/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());