Skip to main content

OAuth Flow Overview

1

Authorization Request

Redirect users to OrbitForms authorization page
2

User Consent

User reviews and approves requested permissions
3

Authorization Code

OrbitForms redirects back with an authorization code
4

Token Exchange

Exchange the code for access and refresh tokens
5

API Access

Use the access token to make API requests

Step 1: Build Authorization URL

Redirect users to the OrbitForms authorization endpoint with the following parameters:

Step 2: Exchange Code for Tokens

After the user authorizes your app, they’ll be redirected to your callback URL with an authorization code. Exchange this code for access and refresh tokens:
Response:

Available Scopes

Request only the permissions your app needs:

forms:read

Read form configurations

forms:write

Create and update forms

forms:delete

Delete forms

submissions:read

Read form submissions

submissions:write

Update submission data

contacts:read

Read contacts and tags

contacts:write

Create, update, and manage contacts and tags

contacts:delete

Delete contacts

webhooks:read

Read webhook configurations

webhooks:write

Create and manage webhooks

analytics:read

Read form analytics

Security Best Practices

Keep secrets secure

Never expose your Client Secret in client-side code or version control.

Use state parameter

Always include a random state string to prevent CSRF attacks.

Handle token refresh

Use refresh tokens to get new access tokens before they expire.

Validate redirect URIs

Only use pre-registered callback URLs to prevent open redirect vulnerabilities.

Next Steps

App Permissions

Learn about permission scopes

API Reference

Explore available endpoints