Get an OAuth app
curl --request GET \
--url https://api.sequin.io/v1/oauth-apps/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequin.io/v1/oauth-apps/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequin.io/v1/oauth-apps/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sequin.io/v1/oauth-apps/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequin.io/v1/oauth-apps/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sequin.io/v1/oauth-apps/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequin.io/v1/oauth-apps/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "8ff58ef0-d376-4ae8-b2e2-9f0206aa65b8",
"provider": "stripe",
"name": "My Stripe OAuth App",
"client_id": "8ff58ef0-d376-4ae8-b2e2-9f0206aa65b8",
"client_secret": "**********",
"metadata": { "custom_property": 42 },
// the health field is coming soon
"health": {
"status": "ok",
"notes": [],
"time": "2023-12-15 01:29:29"
},
"created_at": "2024-02-20T02:10:52Z",
"updated_at": "2024-02-20T02:10:52Z"
},
{ ... },
{ ... }
]
}
OAuth apps
Get an OAuth app
This endpoint gets a single OAuth app.
GET
/
v1
/
oauth-apps
/
{id}
Get an OAuth app
curl --request GET \
--url https://api.sequin.io/v1/oauth-apps/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequin.io/v1/oauth-apps/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequin.io/v1/oauth-apps/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sequin.io/v1/oauth-apps/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequin.io/v1/oauth-apps/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sequin.io/v1/oauth-apps/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequin.io/v1/oauth-apps/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "8ff58ef0-d376-4ae8-b2e2-9f0206aa65b8",
"provider": "stripe",
"name": "My Stripe OAuth App",
"client_id": "8ff58ef0-d376-4ae8-b2e2-9f0206aa65b8",
"client_secret": "**********",
"metadata": { "custom_property": 42 },
// the health field is coming soon
"health": {
"status": "ok",
"notes": [],
"time": "2023-12-15 01:29:29"
},
"created_at": "2024-02-20T02:10:52Z",
"updated_at": "2024-02-20T02:10:52Z"
},
{ ... },
{ ... }
]
}
Request parameters
string
required
ID of the OAuth app.
Response fields
{
"data": [
{
"id": "8ff58ef0-d376-4ae8-b2e2-9f0206aa65b8",
"provider": "stripe",
"name": "My Stripe OAuth App",
"client_id": "8ff58ef0-d376-4ae8-b2e2-9f0206aa65b8",
"client_secret": "**********",
"metadata": { "custom_property": 42 },
// the health field is coming soon
"health": {
"status": "ok",
"notes": [],
"time": "2023-12-15 01:29:29"
},
"created_at": "2024-02-20T02:10:52Z",
"updated_at": "2024-02-20T02:10:52Z"
},
{ ... },
{ ... }
]
}
string
ID of the OAuth app.
string
Display name of the OAuth app.
object
Status of the OAuth app. Learn more about the health object.
string
The client ID of the OAuth app.
string
The client secret of the OAuth app.
object
Metadata for the OAuth app. This is a free-form object that you can use to store any additional information you want to associate with the OAuth app.
string
Timestamp of when the OAuth app was created, in ISO 8601 format.
string
Timestamp of when the OAuth app was last updated, in ISO 8601 format.
⌘I

