List measured platforms
curl --request GET \
--url https://api.solaraai.com/api/v1/performance/platforms \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/performance/platforms"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.solaraai.com/api/v1/performance/platforms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accounts": [
{
"platform": "youtube",
"status": "importing",
"import_done": 123,
"import_total": 123,
"name": "<string>",
"social_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"platforms": [
{
"accounts": [
"<string>"
],
"platform": "youtube",
"status": "ok",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"code": "invalid_credentials",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Performance
List measured platforms
Solara AI API: Each platform connected or with numbers kept and where it stands (ok, importing, no_data, needs_reauth, needs_plan for X without a plan, disconnected), and each account and its import. Read it first, and when numbers are missing. YouTube and Threads are left out.
Permission: Read (read).
GET
/
api
/
v1
/
performance
/
platforms
List measured platforms
curl --request GET \
--url https://api.solaraai.com/api/v1/performance/platforms \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/performance/platforms"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.solaraai.com/api/v1/performance/platforms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"accounts": [
{
"platform": "youtube",
"status": "importing",
"import_done": 123,
"import_total": 123,
"name": "<string>",
"social_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"platforms": [
{
"accounts": [
"<string>"
],
"platform": "youtube",
"status": "ok",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"code": "invalid_credentials",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Authorizations
Response
OK