API authentication
There are two ways to authenticate when making API calls to Fusion:- Basic authentication with a username and password
- API key authentication
Authenticate with basic auth
You can use a Fusion username and password to authenticate with Fusion’s REST API. The user’s role and permissions must include access to the endpoints and methods you want to use.Authenticate with an API key
You can use an API key instead of a username and password combination to power your search application or operations. Pass your API key to Fusion using eitherapiKey
or x-api-key
, as in these examples:
Access API endpoints
API endpoints follow this pattern:https://FUSION_HOST/api/query/query-pipelines
Discover API endpoints
There are several ways to discover Fusion’s REST API endpoints.Discover endpoints in the docs
Navigate this documentation to find the API for each Fusion service. On any API documentation page, click the View API specification button to see the Swagger/OpenAPI specs for that service’s API endpoints. You can also jump directly to the specs from here:- Admin API specs
- Apps Manager API specs
- Async Parsing API specs
- Query API specs
- Connectors APIs specs
- Proxy API specs
- Indexing APIs specs
- Job Config API specs
- Job Launcher API specs
- Job REST Server API specs
- Machine Learning Model API specs
- Templating API specs
Access the Swagger UI
To enable Swagger, use--set swagger.enabled=true
in the Helm chart install command.
CautionAuthentication and authorization rules do not include the Swagger user interface; anyone with network access to your Fusion instance can see it.
Before enabling Swagger, determine your organization’s security requirements.
/SERVICE_NAME/swagger-ui/index.html
in the URL.
For example, change the path to /indexing/swagger-ui/index.html
to see the Indexing API.
Get the API specs in JSON
You can view or download the JSON-formatted API specs for each service by appending/v2/api-docs
or /v3/api-docs
to the service’s base URL: