The Core API provides GraphQL endpoints for managing API configurations, data extraction, transformations, and workflows. Main concepts:

  • API Calls: Execute and transform API requests
  • Extractions: Process and parse files/responses
  • Transformations: Convert data between formats
  • Workflows: Chain multiple steps (API, extract, transform) into a single execution

Endpoint

Use https://graphql.superglue.cloud or omit endpoint in the SDK. Self-hosted default port: 3000.

Authentication

All requests require a bearer token:

Authorization: Bearer YOUR_AUTH_TOKEN

Base Types

interface BaseConfig {
  id: ID!
  version: String
  createdAt: DateTime
  updatedAt: DateTime
}

union ConfigType = ApiConfig | ExtractConfig | TransformConfig

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

RequestOptions

  • cacheMode: CacheMode
  • timeout: Int
  • retries: Int
  • retryDelay: Int
  • webhookUrl: String

PaginationInput

  • type: PaginationType!
  • pageSize: String
  • cursorPath: String

SystemInput

  • id: String!
  • urlHost: String!
  • urlPath: String
  • documentationUrl: String
  • documentation: String
  • credentials: JSON

Enums

HttpMethod

GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS

CacheMode

ENABLED, READONLY, WRITEONLY, DISABLED

FileType

CSV, JSON, XML, AUTO

AuthType

NONE, OAUTH2, HEADER, QUERY_PARAM

DecompressionMethod

GZIP, DEFLATE, NONE, AUTO, ZIP

PaginationType

OFFSET_BASED, PAGE_BASED, CURSOR_BASED, DISABLED

LogLevel

DEBUG, INFO, WARN, ERROR

Common Parameters

All execution operations (call, extract, transform, executeWorkflow) accept a RequestOptions object.

Error Handling

All operations return:

{
  success: Boolean!
  error: String
  startedAt: DateTime!
  completedAt: DateTime!
}

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

If webhookUrl is set in options:

  • On success: POST {success: true, data: result}
  • On failure: POST {success: false, error: message}

Workflows

Workflows let you chain multiple steps (API, extract, transform) into a single execution. See queries and mutations for details.

See also: