API reference · Account
Where a platform's sign in returns
GET/api/studio/publish/{platform}/callbackSigned in session
The redirect URI the operator registers with the app. The state must be the one signed for the signed in account and this platform; the code is traded for tokens, kept encrypted. Redirects to /studio/generations with publish=<platform> and linked=1, or failed=<reason>.
Parameters
| Field | Type | What it is |
|---|---|---|
| platform (path)required | string | tiktok, youtube or instagram. One of "tiktok", "youtube", "instagram". |
| code (query) | string | The platform's code. |
| state (query) | string | The signed state. |
| error (query) | string | Set when the person declined. |
Errors
- 302A redirect (Location).
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.