openapi: 3.1.0 info: title: AlphaSense Agent Authentication Workflow Agents API description: GraphQL surface for embedding AlphaSense market intelligence into customer AI agents. Wraps GenSearch (auto / fast / thinkLonger / deepResearch modes), Workflow Agents, and the Document Search API behind an OAuth 2.0 + API-key-protected /gql endpoint. Returns markdown-formatted answers with inline citations into the AlphaSense corpus (filings, broker research, Tegus expert call transcripts, news, internal Enterprise Intelligence documents). Documented at https://developer.alpha-sense.com/agent-api/quickstart. version: '1.0' contact: name: AlphaSense Developer Support url: https://developer.alpha-sense.com/ termsOfService: https://www.alpha-sense.com/legal/ servers: - url: https://api.alpha-sense.com description: AlphaSense SaaS API gateway - url: https://{customerDomain} description: AlphaSense Private Cloud (customer-hosted) variables: customerDomain: default: customer.alpha-sense.cloud description: Customer-provisioned Private Cloud domain. security: - bearerAuth: [] apiKeyHeader: [] tags: - name: Workflow Agents description: Pre-built and customer-defined workflow-agent invocations. paths: /gql: post: operationId: graphqlGateway summary: Execute An AlphaSense GraphQL Operation description: Single GraphQL endpoint that fronts the AlphaSense Agent API and Utility APIs. Submit a query or mutation in the body; the operation selects the surface (GenSearch, Deep Research, Workflow Agents, Document Search, Companies, Brokers, Watchlist, Trends, User, Download). Authentication is the bearer token from /auth plus the x-api-key header. tags: - Workflow Agents requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/GraphQLRequest' responses: '200': description: GraphQL response envelope. content: application/json: schema: $ref: '#/components/schemas/GraphQLResponse' '401': description: Missing or invalid bearer token / API key. '429': description: Rate or credit limit exceeded. components: schemas: GraphQLResponse: type: object properties: data: type: object additionalProperties: true description: GraphQL response data payload. errors: type: array description: GraphQL errors, if any. items: $ref: '#/components/schemas/GraphQLError' GraphQLError: type: object properties: message: type: string path: type: array items: type: string extensions: type: object additionalProperties: true GraphQLRequest: type: object required: - query properties: query: type: string description: GraphQL query or mutation document. variables: type: object additionalProperties: true description: GraphQL variables map. operationName: type: string description: Named operation when the document defines more than one. securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT apiKeyHeader: type: apiKey in: header name: x-api-key externalDocs: description: AlphaSense Agent API Quickstart url: https://developer.alpha-sense.com/agent-api/quickstart