curl --request POST \
--url https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/platform_integrations/{id}/campaigns \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>"
}
'[
{
"id": "<string>",
"name": "<string>",
"platform": "<string>",
"account_id": "<string>",
"campaign_id": "<string>",
"platform_integration_id": "<string>",
"details": {}
}
]Make a call to external platform API to retrieve a list of campaigns available for the given account.
Response Format:
details field is null.details field contains:
{
"ad_groups": [
{
"id": "string",
"name": "string"
}
]
}
TikTok Response Structure:
id: Campaign ID (unique identifier for the campaign)name: Campaign namecampaign_id: Campaign IDdetails.ad_groups: List of ad group objects, each containing:
id: Ad group IDname: Ad group nameNote: Campaigns with no ad groups are skipped for TikTok.
curl --request POST \
--url https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/platform_integrations/{id}/campaigns \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>"
}
'[
{
"id": "<string>",
"name": "<string>",
"platform": "<string>",
"account_id": "<string>",
"campaign_id": "<string>",
"platform_integration_id": "<string>",
"details": {}
}
]Documentation Index
Fetch the complete documentation index at: https://docs.shareofmodel.ai/llms.txt
Use this file to discover all available pages before exploring further.
A UUID string identifying this platform integration.
A UUID string identifying the organization.
A UUID string identifying the workspace.
The ID of the account.
A list of campaigns associated with the account. For TikTok, each campaign includes its ad groups in the details field.