List requests waiting for approval
curl --request GET \
--url https://api.solaraai.com/api/v1/publish-requests \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/publish-requests"
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/publish-requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"requests": [
{
"approve_url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"deliveries": [
{
"platform": "<string>",
"state": "<string>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"export_key": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requested_by_name": "<string>",
"requested_by_you": true,
"status": "pending",
"summary": {
"accounts": [
{
"display_name": "<string>",
"platform": "<string>",
"location_address": "<string>"
}
],
"caption": "<string>",
"kind": "<string>",
"platforms": [
"<string>"
],
"publish_at": "2023-11-07T05:31:56Z",
"title": "<string>",
"video_id": "<string>",
"comments": [
{
"text": "<string>",
"link": "<string>"
}
],
"formats": {},
"google_business": {
"action_type": "<string>",
"action_url": "<string>",
"coupon_code": "<string>",
"end_date": "<string>",
"end_time": "<string>",
"redeem_url": "<string>",
"start_date": "<string>",
"start_time": "<string>",
"terms": "<string>",
"title": "<string>",
"topic_type": "<string>"
},
"instagram_trial": "MANUAL",
"link": {
"domain": "<string>",
"url": "<string>",
"description": "<string>",
"other_domains": [
"<string>"
],
"title": "<string>"
},
"other_posts": [
{
"platforms": [
"<string>"
],
"post_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"post_status": "<string>",
"publish_at": "2023-11-07T05:31:56Z"
}
],
"pinterest": {
"board_id": "<string>",
"alt_text": "<string>",
"board_name": "<string>",
"link": "<string>",
"title": "<string>"
},
"platform_overrides": {},
"threads": {
"topic_tag": "<string>"
},
"tiktok": {
"mode": "direct",
"allow_comment": true,
"allow_duet": true,
"allow_stitch": true,
"brand_organic": true,
"branded_content": true,
"privacy_level": "PUBLIC_TO_EVERYONE"
},
"upload_ids": [
"<string>"
],
"youtube": {
"made_for_kids": true,
"privacy": "public",
"title": "<string>"
}
},
"agent_name": "<string>",
"auto_approved": true,
"decided_at": "2023-11-07T05:31:56Z",
"decided_by_name": "<string>",
"failure": "<string>",
"images": [
{
"upload_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
],
"media_url": "<string>",
"post_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"poster_url": "<string>"
}
],
"review_url": "<string>"
}{
"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"
}Posting
List requests waiting for approval
Solara AI API: Coming soon (opens at launch). Every request to post the person hasn’t decided yet, soonest first, and review_url: one page where they approve each or all at once, signed in. You cannot approve. Needs the review page switched on for the workspace (403 post_planning_off until then).
Permission: Ask to post (publish).
GET
/
api
/
v1
/
publish-requests
List requests waiting for approval
curl --request GET \
--url https://api.solaraai.com/api/v1/publish-requests \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/publish-requests"
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/publish-requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"requests": [
{
"approve_url": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"deliveries": [
{
"platform": "<string>",
"state": "<string>"
}
],
"expires_at": "2023-11-07T05:31:56Z",
"export_key": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requested_by_name": "<string>",
"requested_by_you": true,
"status": "pending",
"summary": {
"accounts": [
{
"display_name": "<string>",
"platform": "<string>",
"location_address": "<string>"
}
],
"caption": "<string>",
"kind": "<string>",
"platforms": [
"<string>"
],
"publish_at": "2023-11-07T05:31:56Z",
"title": "<string>",
"video_id": "<string>",
"comments": [
{
"text": "<string>",
"link": "<string>"
}
],
"formats": {},
"google_business": {
"action_type": "<string>",
"action_url": "<string>",
"coupon_code": "<string>",
"end_date": "<string>",
"end_time": "<string>",
"redeem_url": "<string>",
"start_date": "<string>",
"start_time": "<string>",
"terms": "<string>",
"title": "<string>",
"topic_type": "<string>"
},
"instagram_trial": "MANUAL",
"link": {
"domain": "<string>",
"url": "<string>",
"description": "<string>",
"other_domains": [
"<string>"
],
"title": "<string>"
},
"other_posts": [
{
"platforms": [
"<string>"
],
"post_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"post_status": "<string>",
"publish_at": "2023-11-07T05:31:56Z"
}
],
"pinterest": {
"board_id": "<string>",
"alt_text": "<string>",
"board_name": "<string>",
"link": "<string>",
"title": "<string>"
},
"platform_overrides": {},
"threads": {
"topic_tag": "<string>"
},
"tiktok": {
"mode": "direct",
"allow_comment": true,
"allow_duet": true,
"allow_stitch": true,
"brand_organic": true,
"branded_content": true,
"privacy_level": "PUBLIC_TO_EVERYONE"
},
"upload_ids": [
"<string>"
],
"youtube": {
"made_for_kids": true,
"privacy": "public",
"title": "<string>"
}
},
"agent_name": "<string>",
"auto_approved": true,
"decided_at": "2023-11-07T05:31:56Z",
"decided_by_name": "<string>",
"failure": "<string>",
"images": [
{
"upload_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>"
}
],
"media_url": "<string>",
"post_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"poster_url": "<string>"
}
],
"review_url": "<string>"
}{
"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