---
title: "Snapchat's way back from its consent page"
method: GET
path: "/connectors/snapchat/callback"
tags: ["connectors"]
---

# Snapchat's way back from its consent page

`GET /connectors/snapchat/callback`

## Request

- Base URL: `https://app.zalster.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zalster.com/connectors/snapchat/callback`
- Auth: none declared

A platform's consent page sends the browser here (design 15.0 §3.1.2).

The state is redeemed once and must come back to the person who left;
the code is traded with no database session open; identity and grant
are read; the login is stored (tokens sealed) and audited. The browser
goes to the portal's ``return_to`` with ``connector`` and
``result=connected``, or ``result=error`` and ``reason`` = ``denied``,
``missing_permissions`` (stored all the same), ``refused`` or
``failed`` (a link back that does not hold among them).

## Query parameters

- `state` string, nullable: The state the consent page was given
- `code` string, nullable: The code to trade for a token
- `auth_code` string, nullable: TikTok's code to trade for a token
- `error` string, nullable: Set when the consent page was declined
- `error_description` string, nullable: Why, in the platform's words

## Other responses

- `307`: Successful Response
- `422`: Validation Error

---

[API](https://skmtc.dev/zalster/apis/zalster-feed-processor.md) - [All operations](https://skmtc.dev/zalster/apis/zalster-feed-processor/llms.txt) - [OpenAPI document](https://skmtc.dev/zalster/apis/zalster-feed-processor/revisions/d0b9dc66ad36?raw)
