Discover pending provider sign-ins
curl --request GET \
--url https://api.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins', 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.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins",
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.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins"
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.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins")
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{
"items": [
{
"login_id": "<string>",
"provider_id": "<string>",
"method": "interactive",
"status": "pending",
"expires_at": "2023-11-07T05:31:56Z",
"account_key": "<string>"
}
]
}{
"error": "prompt_required"
}{
"error": "unauthorized"
}{
"error": "missing_scope",
"required_scope": "sessions:read"
}Provider credentials
Discover pending provider sign-ins
Lists only this user’s unexpired, authorized pending public sign-ins. Metadata only: no challenges, codes, prompts, credentials or terminal results. Fetch a selected login for its current next_action. Requires owner/admin user OAuth with org:write, even though this is a GET. Discovery never renews original authority.
Scope:org:writeGET
/
v3
/
organizations
/
{orgId}
/
provider-credentials
/
oauth
/
logins
Discover pending provider sign-ins
curl --request GET \
--url https://api.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins', 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.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins",
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.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins"
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.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reasonmachines.ai/v3/organizations/{orgId}/provider-credentials/oauth/logins")
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{
"items": [
{
"login_id": "<string>",
"provider_id": "<string>",
"method": "interactive",
"status": "pending",
"expires_at": "2023-11-07T05:31:56Z",
"account_key": "<string>"
}
]
}{
"error": "prompt_required"
}{
"error": "unauthorized"
}{
"error": "missing_scope",
"required_scope": "sessions:read"
}Authorizations
A workspace-bound human user OAuth grant with org:write scope. The user must be an organization owner/admin. API keys and browser sessions are not accepted.
Path Parameters
Organization id or slug. Resolve it with GET /v3/self.
Query Parameters
Required string length:
1 - 256Response
All matching pending summaries, ordered by provider and login ID.
Show child attributes
Show child attributes

