Read a ChatGPT plan device sign-in
curl --request GET \
--url https://api.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID}', 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.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID}",
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.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID}"
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.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID}")
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{
"status": "pending"
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Connections
Read a ChatGPT plan device sign-in
Reads one of the caller’s ChatGPT plan device sign-ins: pending until they sign in, then complete with the ChatGPT plan connection it stored.
Use this tool when you need to:
- Poll, every interval seconds, whether the caller finished the ChatGPT sign-in createChatgptPlanDeviceAuth started
- Get the ChatGPT plan connection a finished sign-in added or reconnected
Examples:
- GET /connections/chatgpt-plan/device-auths/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21
Hints:
- deviceAuthID is the id createChatgptPlanDeviceAuth returned; the schema answers 422 for a value that is not a uuid, and one that is not a canonical lowercase uuid is 404 device_auth_not_found.
- Answers status pending while ChatGPT has not seen the caller sign in (its poll answers 403 or 404), or status complete with connection, the ChatGPT plan connection stored as the start’s mode named: a new one under its name (the Codex default when the caller has none), or the reconnected one, its id, name, tasks, profiles and defaults kept and its reauth cleared.
- The first read after the caller signs in stores the plan; every read after that answers with the same connection, read afresh, until that connection is disconnected, which deletes the sign-in (404 device_auth_not_found from then on).
- Use createChatgptPlanDeviceAuth instead to start a new sign-in, as after a 502 or a 404.
- Any signed-in user may call it for a sign-in they started, an agent host’s grant included (the Aether CLI in the agent’s box calls it for its owner); through a platform API key pinned to an org where the caller is a viewer or billing member it is refused with 403 org_role_insufficient.
- Refused with 404 device_auth_not_found for a sign-in the caller did not start, 409 connection_name_taken when the caller uses the name for another ChatGPT plan by the time it completes (the start does not check it), 409 connection_account_held when the ChatGPT account is already another of the caller’s connections (the message names it: reconnect that one), and 502 when ChatGPT fails the sign-in or it expired: any other poll answer, or a failed code exchange or token parse.
GET
/
connections
/
chatgpt-plan
/
device-auths
/
{deviceAuthID}
Read a ChatGPT plan device sign-in
curl --request GET \
--url https://api.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID}', 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.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID}",
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.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID}"
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.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/connections/chatgpt-plan/device-auths/{deviceAuthID}")
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{
"status": "pending"
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "aether_inference_unavailable",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}