ads

GET /v1/ads/connect/microsoft/callback

Microsoft returns the browser here after consent.

All ads endpoints

All developer docs →

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/callback

Signed 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

NameTypeRequiredWhat it is
state (query)stringNo—
code (query)stringNo—
error (query)stringNo—
error_description (query)stringNo—