Skip to main content

HTTP API

Connect any external HTTP API to DashX. Once installed, you can define Operations that call it, and use its responses anywhere in DashX.

Use this when a service you depend on has no dedicated DashX integration.

Prerequisites

Prerequisites

Before setting up the HTTP API integration, ensure you have:

Connect to DashX

  1. Log in to your DashX workspace
  2. Navigate to Settings > Integrations
  3. Click [+] to add a new integration and select HTTP API
  4. Choose the environments you want to enable it for
  5. Enter the configuration below and save

Configuration

FieldDescription
Base URLThe root URL every request is made against, e.g. https://api.example.com/v1.
Auth StrategyHow requests authenticate. The remaining fields depend on what you pick.

Auth strategies

None

No credentials are sent. Use for public APIs.

Basic

HTTP Basic authentication.

FieldDescription
UsernameUsername sent in the Authorization header.
PasswordPassword sent in the Authorization header.

Bearer Token

A static token sent as Authorization: Bearer <token>.

FieldDescription
TokenThe bearer token.

Oauth

OAuth 2.0. DashX obtains and refreshes access tokens for you.

FieldDescription
Client IDOAuth client identifier.
Client SecretOAuth client secret.
Access Token URLEndpoint DashX exchanges credentials at for an access token.
Refresh Token URLEndpoint DashX uses to refresh an expired access token.
ScopeSpace-separated scopes to request.

Define operations

With the integration installed, create an operation with the API Request behavior to call an endpoint. Parameters become the operation's GraphQL arguments, and a response mapper reshapes the payload into the form you want to expose. See Operations.

Related: the API Hub app.

tip

Point each environment's installation at that environment's API — a sandbox base URL in development, production in production — so the same operation works everywhere without changes.