A connection is optional. You can use this connector without a connection for public APIs, or configure a connection to set a base URL and authentication for reuse across requests.
Connection setup (optional)
If you make multiple requests to the same API, configure a connection to avoid repeating the base URL and auth details:- Base URL: Common prefix for all requests (e.g.,
https://api.example.com) - Auth Method:
None,Bearer token,API key,Basic auth, orOAuth 2.0 - Token / API Key: For bearer or API key auth
- Username / Password: For basic auth
- OAuth 2.0 app: For APIs that authorize with an access token from your own OAuth app (see below)
Authorization: Bearer <token> for bearer and OAuth 2.0, X-API-Key: <key> for API key, and Authorization: Basic <credentials> for basic. A headers value on a tool call overrides the default.
OAuth 2.0 (bring your own app)
Choose OAuth 2.0 as the auth method when the API expects an access token issued by an OAuth 2.0 provider (GitHub, Google, Microsoft, HubSpot, and most SaaS APIs). You register an OAuth app with the provider and give Spojit its details; Spojit runs the authorization, stores the tokens securely and refreshes the access token before it expires.1
Register the redirect URI on your OAuth app
Add this callback URL to your provider’s OAuth app:
2
Fill in the OAuth fields
On the connection’s Configure dialog choose OAuth 2.0 and enter the Authorization URL, Token URL, Client ID, Client Secret and Scopes. Under Advanced you can toggle PKCE and switch client authentication between POST body and Basic header. The Base URL works as usual.
3
Save & connect
Click Save & connect. Spojit redirects you to the provider to consent, then stores the tokens and marks the connection Connected. Every request through this connection carries
Authorization: Bearer <access token>.Tools
http-get: GET request
http-get: GET request
http-post: POST request
http-post: POST request
string
required
URL or path.
any
Request body. If you keep the default JSON editor, the body is JSON-serialized with
Content-Type: application/json auto-set. If you switch the editor to Text (via the ⋮ menu), the body is sent as the raw string; set your own Content-Type header to match (text/plain, application/xml, application/x-www-form-urlencoded, etc.).object
Custom HTTP headers.
number
Request timeout in milliseconds.
http-put: PUT request
http-put: PUT request
string
required
URL or path.
any
Request body. If you keep the default JSON editor, the body is JSON-serialized with
Content-Type: application/json auto-set. If you switch the editor to Text (via the ⋮ menu), the body is sent as the raw string; set your own Content-Type header to match (text/plain, application/xml, application/x-www-form-urlencoded, etc.).object
Custom HTTP headers.
number
Request timeout in milliseconds.
http-patch: PATCH request
http-patch: PATCH request
string
required
URL or path.
any
Request body. If you keep the default JSON editor, the body is JSON-serialized with
Content-Type: application/json auto-set. If you switch the editor to Text (via the ⋮ menu), the body is sent as the raw string; set your own Content-Type header to match (text/plain, application/xml, application/x-www-form-urlencoded, etc.).object
Custom HTTP headers.
number
Request timeout in milliseconds.
http-delete: DELETE request
http-delete: DELETE request
http-head: HEAD request
http-head: HEAD request
http-request: Generic HTTP request
http-request: Generic HTTP request
Make a request with any HTTP method.Example request:Example response:
string
required
HTTP method:
GET, POST, PUT, PATCH, DELETE, HEAD, or OPTIONS.string
required
URL or path.
any
Request body. If you keep the default JSON editor, the body is JSON-serialized with
Content-Type: application/json auto-set. If you switch the editor to Text (via the ⋮ menu), the body is sent as the raw string; set your own Content-Type header to match (text/plain, application/xml, application/x-www-form-urlencoded, etc.).object
Custom HTTP headers.
number
Request timeout in milliseconds.