ads
GET /v1/ads/connect/microsoft/callback
Microsoft returns the browser here after consent.
Authentication
This endpoint is public. It takes no credential and no organisation — it is what our own marketing site and AI answer engines read.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X GET https://api.zinndigital.com/v1/ads/connect/microsoft/callbackSigned in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Unauthenticated by design: its authority is the signed state, which must have been signed for Microsoft (a Google state is refused). Always answers with a redirect to the dashboard, as the Google callback does. When Microsoft returns an error, the AADSTS code in error_description decides the outcome: none (or AADSTS65004, declined) is connect=cancelled; any other is connect=refused&reason=AADSTS<digits> — only that fixed-shape code is forwarded, never the description text.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
state (query) | string | No | — |
code (query) | string | No | — |
error (query) | string | No | — |
error_description (query) | string | No | — |