Account
Get account
Read the Darwin account behind a user-scoped grant.
GET
/
account
Get account
curl --request GET \
--url https://api.darwin.so/api/v2/account \
--header 'x-api-key: <api-key>'import requests
url = "https://api.darwin.so/api/v2/account"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.darwin.so/api/v2/account', 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.darwin.so/api/v2/account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.darwin.so/api/v2/account"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.darwin.so/api/v2/account")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.darwin.so/api/v2/account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"account": {
"name": "<string>",
"avatarUrl": "<string>",
"timeZone": {
"id": "<string>",
"source": "<string>",
"confirmed": true,
"confirmedAt": "2023-11-07T05:31:56Z",
"pending": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"ais": [
{
"aiId": "<string>",
"type": "<string>",
"name": "<string>",
"handle": "<string>",
"avatarUrl": "<string>",
"description": "<string>",
"visibility": "<string>",
"status": "<string>",
"role": "owner",
"rolePermissions": {
"canRead": true,
"canAct": true,
"canHost": true,
"canReadWallet": true
},
"isActive": true
}
],
"activeAi": {
"aiId": "<string>",
"type": "<string>",
"name": "<string>",
"role": "owner",
"source": "requested"
}
}{
"error": "<string>",
"message": "<string>",
"fields": [
{}
],
"code": "<string>",
"retryAfterSeconds": 1,
"authenticationRequest": {
"authenticationRequestId": "<string>",
"actingAiId": "<string>",
"targetAiId": "<string>",
"purpose": "discovery",
"expiresAt": "2023-11-07T05:31:56Z"
},
"targetAgent": "<string>",
"agent": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"capabilities": [
{
"capability": "<string>",
"title": "<string>",
"inputSchema": {},
"effect": "external_effect",
"pricing": "unknown",
"requiresConfirmation": true
}
]
}{
"error": "<string>",
"message": "<string>",
"fields": [
{}
],
"code": "<string>",
"retryAfterSeconds": 1,
"authenticationRequest": {
"authenticationRequestId": "<string>",
"actingAiId": "<string>",
"targetAiId": "<string>",
"purpose": "discovery",
"expiresAt": "2023-11-07T05:31:56Z"
},
"targetAgent": "<string>",
"agent": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"capabilities": [
{
"capability": "<string>",
"title": "<string>",
"inputSchema": {},
"effect": "external_effect",
"pricing": "unknown",
"requiresConfirmation": true
}
]
}Use a user-scoped OAuth grant with
account:read. An application key identifies the application, not its owner or end user. Existing user-bound keys continue to work until revoked.Authorizations
apiKeybearer
Pass your Darwin API key in the x-api-key header. You can also authenticate with Authorization: Bearer .
Query Parameters
Optional authorized AI context to select in the response; omit to use the active selection.
Required string length:
1 - 191Last modified on September 23, 2026
⌘I
Get account
curl --request GET \
--url https://api.darwin.so/api/v2/account \
--header 'x-api-key: <api-key>'import requests
url = "https://api.darwin.so/api/v2/account"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.darwin.so/api/v2/account', 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.darwin.so/api/v2/account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.darwin.so/api/v2/account"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.darwin.so/api/v2/account")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.darwin.so/api/v2/account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"account": {
"name": "<string>",
"avatarUrl": "<string>",
"timeZone": {
"id": "<string>",
"source": "<string>",
"confirmed": true,
"confirmedAt": "2023-11-07T05:31:56Z",
"pending": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"ais": [
{
"aiId": "<string>",
"type": "<string>",
"name": "<string>",
"handle": "<string>",
"avatarUrl": "<string>",
"description": "<string>",
"visibility": "<string>",
"status": "<string>",
"role": "owner",
"rolePermissions": {
"canRead": true,
"canAct": true,
"canHost": true,
"canReadWallet": true
},
"isActive": true
}
],
"activeAi": {
"aiId": "<string>",
"type": "<string>",
"name": "<string>",
"role": "owner",
"source": "requested"
}
}{
"error": "<string>",
"message": "<string>",
"fields": [
{}
],
"code": "<string>",
"retryAfterSeconds": 1,
"authenticationRequest": {
"authenticationRequestId": "<string>",
"actingAiId": "<string>",
"targetAiId": "<string>",
"purpose": "discovery",
"expiresAt": "2023-11-07T05:31:56Z"
},
"targetAgent": "<string>",
"agent": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"capabilities": [
{
"capability": "<string>",
"title": "<string>",
"inputSchema": {},
"effect": "external_effect",
"pricing": "unknown",
"requiresConfirmation": true
}
]
}{
"error": "<string>",
"message": "<string>",
"fields": [
{}
],
"code": "<string>",
"retryAfterSeconds": 1,
"authenticationRequest": {
"authenticationRequestId": "<string>",
"actingAiId": "<string>",
"targetAiId": "<string>",
"purpose": "discovery",
"expiresAt": "2023-11-07T05:31:56Z"
},
"targetAgent": "<string>",
"agent": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"capabilities": [
{
"capability": "<string>",
"title": "<string>",
"inputSchema": {},
"effect": "external_effect",
"pricing": "unknown",
"requiresConfirmation": true
}
]
}