curl available.
Prerequisites
Before you begin, make sure you have:- A Flextell account at dev.flextell.ai
- A registered application, which gives you a
client_idandclient_secret
To register an application, log in to your Flextell account, navigate to Applications, and create a new app. Record your
client_id and client_secret — you’ll need them below.Steps
Complete the OAuth 2.0 authorization flow
Redirect your user to the Flextell authorization URL so they can grant your application access:After the user approves, Flextell redirects them to your Capture this
redirect_uri with an authorization code in the query string:code — you’ll exchange it for an access token in the next step.Exchange the authorization code for an access token
Send a A successful response returns a JSON object containing your Save both tokens securely. The
POST request to the token endpoint with your code and credentials:access_token and a refresh_token:access_token is used in every API request, and the refresh_token lets you obtain a new access token when it expires.Make your first API call
Include your A successful response returns
access_token in the Authorization header as a Bearer token. The example below calls a hypothetical endpoint — replace the path with any Flextell endpoint you want to test:cURL
200 OK with a JSON body. If you receive a 401 Unauthorized response, double-check that your token is correctly formatted and has not expired.What to do next
Authentication
Understand token expiry, refresh tokens, and security best practices.
API Reference
Browse every available endpoint, parameter, and response schema.