- Workflows: Chain multiple steps into a single execution (recommended)
- Integrations: Manage integrations (e.g. Stripe, Hubspot) and their credentials
Deprecated Operations
โ ๏ธ The following operations are deprecated:- API Calls: Individual
calloperations - useexecuteWorkflowinstead - Extractions: Individual
extractoperations - useexecuteWorkflowinstead - Transformations: Individual
transformoperations - useexecuteWorkflowinstead - Legacy Config Management:
upsertApi,upsertExtract,upsertTransform- use workflow-based operations instead
Endpoint
Usehttps://graphql.superglue.cloud or omit endpoint in the SDK. Self-hosted default port: 3000.
Authentication
All requests require a bearer token:Base Types
Input Types
ApiInput
- id: ID!
- urlHost: String!
- urlPath: String
- instruction: String!
- queryParams: JSON
- method: HttpMethod
- headers: JSON
- body: String
- documentationUrl: String
- responseSchema: JSONSchema
- responseMapping: JSONata
- authentication: AuthType
- pagination: PaginationInput
- dataPath: String
- version: String
ExtractInput
- id: ID!
- urlHost: String!
- urlPath: String
- queryParams: JSON
- instruction: String!
- method: HttpMethod
- headers: JSON
- body: String
- documentationUrl: String
- decompressionMethod: DecompressionMethod
- fileType: FileType
- authentication: AuthType
- dataPath: String
- version: String
TransformInput
- id: ID!
- instruction: String!
- responseSchema: JSONSchema!
- responseMapping: JSONata
- version: String
WorkflowInput
- id: String!
- steps: [ExecutionStepInput!]
- integrationIds: [ID!]
- finalTransform: JSONata
- inputSchema: JSONSchema
- responseSchema: JSONSchema
- version: String
- instruction: String
IntegrationInput
- id: ID!
- name: String
- urlHost: String
- urlPath: String
- credentials: JSON
- documentationUrl: String
- documentation: String
- documentationPending: Boolean (default: false)
- specificInstructions: String
RequestOptions
Control how operations are executed with fine-grained options.selfHealing: If it should auto-fix issuesENABLED: Full auto-healing (recommended)TRANSFORM_ONLY: Only fix data transformation issuesREQUEST_ONLY: Only fix API request issuesDISABLED: No auto-healing
cacheMode: Deprecated - If it should use the saved configuration and update it if self-healing is performed. this only works for calls, not for workflows.ENABLED: Cache reads and writesREADONLY: Only read from cache, donโt write (Default)WRITEONLY: Only write to cache, donโt readDISABLED: No caching
timeout: Maximum time to wait (milliseconds)retries: Number of retry attempts on failureretryDelay: Delay between retries (milliseconds)webhookUrl: POST endpoint for async notifications - this only works for calls, not for workflows.testMode: If true, validate each request after execution. This is useful for building, testing and debugging.
PaginationInput
- type: PaginationType!
- pageSize: String (default: โ50โ)
- cursorPath: String
- stopCondition: String
SystemInput
- id: String!
- urlHost: String!
- urlPath: String
- documentationUrl: String
- documentation: String
- credentials: JSON
Enums
HttpMethod
GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONSCacheMode
ENABLED, READONLY, WRITEONLY, DISABLEDFileType
CSV, JSON, XML, AUTOAuthType
NONE, OAUTH2, HEADER, QUERY_PARAMDecompressionMethod
GZIP, DEFLATE, NONE, AUTO, ZIPPaginationType
OFFSET_BASED, PAGE_BASED, CURSOR_BASED, DISABLEDLogLevel
DEBUG, INFO, WARN, ERRORSelfHealingMode
ENABLED, TRANSFORM_ONLY, REQUEST_ONLY, DISABLEDUpsertMode
CREATE, UPDATE, UPSERTCommon Parameters
All execution operations (executeWorkflow) accept a RequestOptions object.
Default Query Parameters
Most list operations support:limit: Int(default: 50)offset: Int(default: 0)
Error Handling
All operations return:Retry Logic
- API calls: up to 8 retries
- Extractions: up to 5 retries
- Each retry can generate a new config based on the previous error
Webhooks
IfwebhookUrl is set in options:
- On success: POST
{success: true, data: result} - On failure: POST
{success: false, error: message}