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
Fail the step when the response status is 400 or above. On for steps added in the editor, and the assistant turns it on for steps it builds. Turn it off when an error status is an expected answer (a 404 for a record that does not exist yet) and check
status instead.http-post: POST request
http-post: POST request
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.).Fail the step when the response status is 400 or above. On for steps added in the editor, and the assistant turns it on for steps it builds. Turn it off when an error status is an expected answer (a 404 for a record that does not exist yet) and check
status instead.http-put: PUT request
http-put: PUT request
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.).Fail the step when the response status is 400 or above. On for steps added in the editor, and the assistant turns it on for steps it builds. Turn it off when an error status is an expected answer (a 404 for a record that does not exist yet) and check
status instead.http-patch: PATCH request
http-patch: PATCH request
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.).Fail the step when the response status is 400 or above. On for steps added in the editor, and the assistant turns it on for steps it builds. Turn it off when an error status is an expected answer (a 404 for a record that does not exist yet) and check
status instead.http-delete: DELETE request
http-delete: DELETE request
Fail the step when the response status is 400 or above. On for steps added in the editor, and the assistant turns it on for steps it builds. Turn it off when an error status is an expected answer (a 404 for a record that does not exist yet) and check
status instead.http-head: HEAD request
http-head: HEAD request
Returns response headers only (no body).Example request:Example response:
Fail the step when the response status is 400 or above. On for steps added in the editor, and the assistant turns it on for steps it builds. Turn it off when an error status is an expected answer (a 404 for a record that does not exist yet) and check
status instead.http-request: Generic HTTP request
http-request: Generic HTTP request
Make a request with any HTTP method.Example request:Example response:
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.).Fail the step when the response status is 400 or above. On for steps added in the editor, and the assistant turns it on for steps it builds. Turn it off when an error status is an expected answer (a 404 for a record that does not exist yet) and check
status instead.Error statuses
With failOnErrorStatus on, a response with a status of 400 or above fails the step, and the run shows the status and the reason, for exampleHTTP 503: Service Unavailable. The run then fails like any other failed step: its error handling, retries and Control Center monitors all see it.
Steps saved before the setting existed have it off. With it off, a 4xx or 5xx response is the step’s result: check {{ step.status }} before using {{ step.data }}, or the workflow carries on with an error page as its data.
Try this on the free plan
500 AI credits and 200 workflow runs a month, no card needed.