POST/api/v1/notion/connect/finish

Finish connecting Notion

Called by the callback page with Notion's code and the state (signed, yours, 15 minutes, used once). Stores the token encrypted, one connection per Notion workspace, and resumes syncs that paused on a broken connection.

API token required20 per minute per IP

Guide: Import from Notion

Code samples and Try it

Request body

#

application/json, required

  • codestringRequired

    1–500 characters.

  • statestringRequired

    10–1,000 characters.

Responses

#
  • 200OK.
  • 401No token, or the token is revoked or mistyped.
  • 422The request didn't validate. detail lists each problem, with where it is (loc) and why (msg).
  • 429Too many requests from your IP address. Wait the seconds in Retry-After.
Did this page help?