---
title: "POST /integrations/notion/token"
method: POST
path: "/integrations/notion/token"
---

# POST /integrations/notion/token

`POST /integrations/notion/token`

## Query parameters

- `code` string, required

## Response `200`

The upserted Notion integration

- object — The subset of {!Notion.Oauth.response_success} that we send back to the clients.
  - `access_token` string — An access token used to authorize requests to the Notion API.
  - `owner` unknown
  - `workspace_id` string — The ID of the workspace where this authorization took place.
  - `workspace_name` string — A human-readable name which can be used to display this authorization in UI.
  - `workspace_icon` string — A URL to an image which can be used to display this authorization in UI.

## Other responses

- `401` — Notion token is invalid
- `500` — Notion API error
- `501` — Notion integration not implemented

---

[API](https://skmtc.dev/routine/apis/routine-co.md) · [All operations](https://skmtc.dev/routine/apis/routine-co/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/routine/routine-co/revisions/efced8f8ad00/schema)
