Formify OAuth API

## OAuth 2.0 Authorization Code Grant Flow Formify uses OAuth 2.0 to allow third-party applications to access the API on behalf of users. This section provides a step-by-step guide to implementing the authorization flow. ### Prerequisites See the **[Getting Access](/guides/getting-access/)** guide for details, but in short you must: 1. Obtain your `client_id` and `client_secret`. 2. Register your application at [app.formify.eu](https://app.formify.eu) 3. Configure your `redirect_uri` (must match exactly what you registered) ### Authorization Flow #### Step 1: Redirect User to Authorization URL Redirect the user to Formify's authorization endpoint: ``` https://docs-api.formify.eu/v1/oauth/authorize?client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT_URI&response_type=code&scope=read%20write&state=RANDOM_STATE_STRING ``` **Parameters:** - `client_id` (required): Your application's client ID - `redirect_uri` (required): Where to redirect after authorization (must be registered) - `response_type` (required): Always use `code` for authorization code flow - `scope` (required): Space-separated list of permissions (`read`, `write`, or `read write`) - `state` (recommended): Random string to prevent CSRF attacks #### Step 2: User Authorizes Your Application The user sees a consent screen and approves your application's access to their Formify account. #### Step 3: Receive Authorization Code After approval, Formify redirects back to your `redirect_uri` with an authorization code: ``` https://your-app.com/callback?code=AUTH_CODE_HERE&state=RANDOM_STATE_STRING ``` **Important:** Verify that the `state` parameter matches what you sent in Step 1. #### Step 4: Exchange Code for Access Token Make a POST request to the token endpoint to exchange the authorization code for an access token: ```bash POST https://docs-api.formify.eu/v1/oauth/token Content-Type: application/x-www-form-urlencoded grant_type=authorization_code &code=AUTH_CODE_HERE &redirect_uri=YOUR_REDIRECT_URI &client_id=YOUR_CLIENT_ID &client_secret=YOUR_CLIENT_SECRET ``` **Response:** ```json { "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "def502004a1b2c3d...", "scope": "read write" } ``` #### Step 5: Use Access Token Include the access token in the `Authorization` header for all API requests: ```bash GET https://docs-api.formify.eu/v1/docs Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... ``` ### Token Refresh Access tokens expire after the time specified in `expires_in` (typically 1 hour). Use the refresh token to obtain a new access token without requiring user interaction: ```bash POST https://docs-api.formify.eu/v1/oauth/token Content-Type: application/x-www-form-urlencoded grant_type=refresh_token &refresh_token=YOUR_REFRESH_TOKEN &client_id=YOUR_CLIENT_ID &client_secret=YOUR_CLIENT_SECRET ``` **Response:** Same structure as the initial token response, including a new `refresh_token`. ### Scope - **`read`**: Allows reading documents, files, user info, and account settings - **`write`**: Allows creating/updating documents, uploading files, and modifying settings Request only the scopes your application needs. Users see which permissions you're requesting during authorization. ### Common Errors | Error | Description | Solution | |-------|-------------|----------| | `invalid_grant` | Authorization code expired or already used | Codes expire after 10 minutes. Start the flow again. | | `invalid_client` | Invalid client_id or client_secret | Verify your credentials in app.formify.eu | | `redirect_uri_mismatch` | redirect_uri doesn't match registered URI | Must match exactly (including trailing slash) | | `invalid_scope` | Requested scope not allowed | Use only `read` and/or `write` | | `access_denied` | User denied authorization | User must approve for your app to work | ### Security Best Practices - **Never expose** `client_secret` in client-side code - **Always use HTTPS** for redirect URIs - **Validate state parameter** to prevent CSRF attacks - **Store tokens securely** (encrypted database, secure session storage) - **Refresh tokens proactively** before they expire to avoid service interruption

GitHub OpenAPI

Operations 4

GET /oauth OAuth authorize URL (browser redirect, not an API request) #
POST /oauth/token Generate OAuth 2.0 access token using authorization code or refresh token #
POST /oauth/revoke Revoke OAuth 2.0 token and its associated grant #
POST /oauth/register Dynamic Client Registration (RFC 7591) #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/formify-eu:formify-eu-oauth-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

formify-eu-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Formify OAuth API
  description: '## Overview


    The Formify API lets you send documents for electronic signature, prepare drafts, track signing status, and retrieve signed documents. It is designed for integrating signing workflows into your application.


    ### Getting Access


    OAuth 2.0 is the recommended way to access the API. Before you can use the API, you need an OAuth 2.0 client. Formify creates this for you based on information about your company, contacts, and redirect URIs. See the **Getting Access** guide for setup instructions.


    Once your OAuth client has been created, you can use the OAuth 2.0 Authorization Code flow to obtain access tokens for API requests.


    For MCP clients and third-party platforms that cannot complete OAuth/PKCE and only accept a pasted token, a Formify API key can be exchanged for a short-lived access token with `POST /auth/token`. This is a compatibility option; use OAuth where the client supports it.


    ### Authentication


    Protected API requests use a Bearer access token. The recommended flow is OAuth 2.0: your application redirects the user to Formify for authorization, receives an authorization code, and exchanges it for an access token. See the OAuth 2.0 section for the complete flow.


    ### Environments


    **API base URL**: `https://docs-api.formify.eu/v1`

    All document operations, file uploads, and token exchange endpoints (OAuth and API key fallback) happen here.


    **Authorization Server**: `https://app.formify.eu`

    This is where users authorize your application and approve access (the OAuth consent).


    ### Rate Limiting


    The API uses token-based rate limiting to ensure fair usage:


    - **Headers**: Every response includes rate limit headers:

    - `X-RateLimit-Limit`: Maximum requests allowed

    - `X-RateLimit-Remaining`: Requests remaining in current window

    - `X-RateLimit-Reset`: The number of seconds until the rate limit resets


    - **Not every request costs the same.** Endpoints that build or copy a document consume several tokens

    rather than one, because they render a PDF and make multiple calls to the document service. Creating,

    editing or duplicating a document or a public link is the most expensive; creating or editing a template

    costs less; deleting and duplicating a draft less again. Plain reads cost one.


    If you exceed the limit, the API returns `429 Too Many Requests`. Wait until the reset time before making additional requests.


    ---


    ## Quick Start: Send a PDF for Signing


    Once you have a valid `access_token`, you can send your first document for signing in three steps:


    ### 1. Upload a PDF

    Upload a PDF file using the Upload File endpoint:


    ```bash

    POST /files

    Content-Type: multipart/form-data

    ```


    You will receive a `fileId` in the response.


    ### 2. Create a Signature Request

    Send the document for signing using the Create Document endpoint:


    ```bash

    POST /docs

    {

    "fileId": "your-file-id",

    "signeeDetails": [

    {

    "fullName": "John Doe",

    "emailAddress": "john@example.com",

    "signaturePlacement": "new_page"

    }

    ]

    }

    ```


    The response returns a documentId. The signee then receives an email with a link to sign the document.


    ### 3. Get Notified and Download

    Register a webhook to receive a notification when the document is signed:


    ```bash

    POST /webhooks

    {

    "webhookUrl": "https://your-app.com/webhook",

    "eventTypes": ["document.completed"]

    }

    ```


    Then download the signed PDF using Get Signed Document File:


    ```bash

    GET /docs/{documentId}/signed-file

    ```


    For more detailed walkthroughs, see the **Integration Flows** guide.


    ---


    ### Help


    - **Getting Access** - How to set up OAuth 2.0 credentials

    - **Integration Flows** - Step-by-step guides for common integration scenarios

    - **PDF Form Attributes** - How to add `tink-*` attributes to PDF form field names

    - **MCP Server** - Connect AI assistants with OAuth or an API key fallback for token-only clients

    - **Production Checklist** - Essential steps before going live


    ### Links


    - Formify API Changelog - Track API updates and changes

    - Formify App - Register OAuth applications and manage settings


    ---'
  contact:
    email: api@formify.eu
  version: 1.5.2
  termsOfService: https://formify.eu/privacy/terms
servers:
- url: https://docs-api.formify.eu/v1
  description: Main API server for all document related endpoints and token exchange.
security:
- OAuth2: []
tags:


# --- truncated at 32 KB (32 KB total) ---
# Full source: https://artifacts.apis.io/formify-eu/openapi/formify-eu-oauth-api-openapi.yml