Objects
| Object | What it is | ID field |
|---|---|---|
| Profile (customer) | One of your customers. Use external_id to store your own user or company ID. | customer_id |
| Connection (account) | One connected platform account: a Facebook Page, Instagram account, YouTube channel, mailbox, ad account… | connection_id |
| Execution | One post being published. Created queued, then succeeded or failed. | execution_id |
| Media | An uploaded image or video you attach to posts. | media_id |
A profile can have many connections. One person picking three Facebook Pages creates three connections.
Pagination
List endpoints accept limit and cursor and return { data: [...], next_cursor }. Pass next_cursor as cursor to get the next page; when it is null you have everything.
Asynchronous work
- Publishing, ad changes, inbox actions and mail actions run in the background.
- The create call returns an ID with a status such as queued.
- Poll the matching GET endpoint, or subscribe to webhooks (execution.succeeded, execution.failed …).
- ambiguous means the platform may or may not have acted (e.g. a timeout). Techrace never retries it automatically: check the platform before trying again.
Server safety switches
Reads and writes for each area can be paused on the server (PUBLISHING_PAUSED, INBOX_READS_PAUSED, ANALYTICS_READS_PAUSED, ADS_READS_PAUSED, ADS_WRITES_PAUSED, EMAIL_READS_PAUSED, EMAIL_WRITES_PAUSED, WEBHOOKS_PAUSED). They default to paused; set them to false when that area is ready. A paused area returns 503 with a code such as ads_reads_paused.