REST API
For Studio users with an HTTP API that publishes an OpenAPI 3.x specification as JSON and issues credentials, such as a market data or risk analytics service. You paste the specification, Studio validates it and drafts the guide from it, and you add the credentials as headers or query parameters.
Before you start: on a private deployment, an internal API must sit inside the deployment's internal service ranges (Data Bridge).
Steps
- In Data Bridge, click Create connector, choose REST API as the Connection type, and fill Name, Description and a short Connector Guide; step 4 expands it.
- Under Connection settings ("The base URL agents will hit and the OpenAPI spec we use to enrich the connector guide."), enter the Base URL (for example
https://risk.example.com) and paste the specification into OpenAPI JSON. The counter under it shows the size against 8 MiB. - Click Validate OpenAPI. A pass shows OpenAPI validated with a short report; a failure shows OpenAPI validation failed with the details. Editing the specification clears the result, so validate again after a change.
- Click Enrich guide from OpenAPI. Studio streams a guide built from the endpoints, then shows it to review and edit. Click Accept, or Discard to keep your text.
- Under Credentials and validation, choose Credential placement, HTTP headers or URL query parameters, which applies to every row. In each Credential row fill the Credential key (or Query parameter name), for headers an optional header name that defaults to the key, and the Value. Add credential adds a row, up to 12; the remove button deletes one, except the last.
- Click Create connector. There is no Test connection for this type. The button is enabled once the name, description, guide and base URL are filled, the specification is within 8 MiB and validated, the drafted guide is accepted, and one row has both a key and a value.
- Add the connector to an agent from its Agent Map (Agents: configure and activate).
What you should see
The list shows REST API, "Version 1", Active. Configuration shows the Base URL, the Auth type, the Auth header mapping or Auth query parameter mapping (each key and the header or parameter it is sent as) and Credentials: "Stored securely (values hidden). Use Update to replace values." The specification is stored with the connector, so Update shows it already validated and you change it only when the API changes.
In chat
The agent's code sends requests to the base URL with the stored credentials placed as configured, follows the endpoints the guide describes, saves responses into the run's workspace and reads them from there. Credentials are read from the run's environment and are never printed or shown to you.
Notes
- Limits: specification 8 MiB (over it the form blocks with "OpenAPI specification is n bytes; the limit is 8,388,608 bytes (8 MiB)." and the service answers 413
openapi_spec_too_large); 12 credential rows; one placement per connector; public hosts, or internal hosts in the approved ranges; request timeout stored on the connector, 30 seconds by default. Trim an oversized specification to the paths agents need. - The specification must be OpenAPI 3.x JSON; convert YAML first.
- Studio checks every address the base URL's host resolves to when you save and each time it connects. An address error on save names the host, the address and the reason, for example "
<host>resolves to<ip>, a private address outside this deployment's approved internal ranges. An administrator can add its range on the deployment's Overview in Organisations." Use the API's public hostname, or ask an administrator to approve the range. - "The certificate for
<host>is not issued by a trusted authority.": the API's certificate comes from your own certificate authority; an administrator adds it under Trusted certificate authorities on the deployment's Overview in Organisations. - The agent gets an authentication error from the API, or you need to rotate a credential: click Update and re-enter its value ("Re-enter credential values to rotate secrets."), and check the placement matches what the API expects. A row with a key and no value keeps the stored value. Saving an update needs a validated specification and one named row; drafting the guide again is optional there.