curl --request POST \
--url https://api.social-api.ai/v1/platforms/google/accounts/{id}/media \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"category": "INTERIOR",
"description": "Main dining room",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
category: 'INTERIOR',
description: 'Main dining room',
media: [
{
source: '550e8400-e29b-41d4-a716-446655440000',
source_type: 'media_id',
type: 'image'
}
]
})
};
fetch('https://api.social-api.ai/v1/platforms/google/accounts/{id}/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/google/accounts/{id}/media"
payload = {
"category": "INTERIOR",
"description": "Main dining room",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"attribution": {
"profile_name": "Jane S.",
"profile_photo_url": "<string>",
"profile_url": "<string>",
"takedown_url": "<string>"
},
"category": "INTERIOR",
"created_at": "2026-03-01T12:00:00Z",
"description": "Main dining room",
"height_pixels": 1200,
"id": "accounts/123/locations/456/media/789",
"media": {
"type": "image",
"url": "https://lh3.googleusercontent.com/p/abc"
},
"thumbnail_url": "<string>",
"width_pixels": 1600
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Add media to a Google Business Profile location
Attaches one photo or video to a location’s public profile under the given category. media takes exactly one item in the same form the publishing endpoints accept: a stored media library id (source_type media_id), a public URL (url), or a reference to bytes you uploaded to Google yourself (platform_attachment_id). The photo or video format is derived from the item you supply, so you never set Google’s own upload fields. Google limits a location to 10 edits per minute, and that limit cannot be raised.
curl --request POST \
--url https://api.social-api.ai/v1/platforms/google/accounts/{id}/media \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"category": "INTERIOR",
"description": "Main dining room",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
category: 'INTERIOR',
description: 'Main dining room',
media: [
{
source: '550e8400-e29b-41d4-a716-446655440000',
source_type: 'media_id',
type: 'image'
}
]
})
};
fetch('https://api.social-api.ai/v1/platforms/google/accounts/{id}/media', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/google/accounts/{id}/media"
payload = {
"category": "INTERIOR",
"description": "Main dining room",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"attribution": {
"profile_name": "Jane S.",
"profile_photo_url": "<string>",
"profile_url": "<string>",
"takedown_url": "<string>"
},
"category": "INTERIOR",
"created_at": "2026-03-01T12:00:00Z",
"description": "Main dining room",
"height_pixels": 1200,
"id": "accounts/123/locations/456/media/789",
"media": {
"type": "image",
"url": "https://lh3.googleusercontent.com/p/abc"
},
"thumbnail_url": "<string>",
"width_pixels": 1600
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Path Parameters
Connected account ID
Body
Media item and category
Response
Created
Show child attributes
Show child attributes
"INTERIOR"
"2026-03-01T12:00:00Z"
"Main dining room"
1200
"accounts/123/locations/456/media/789"
Show child attributes
Show child attributes
1600