Skip to main content

Introduction

Supaglue supports three types of APIs:

  1. Unified API: Write to and read from multiple third-party providers with a single API within a category for crm, engagement, enrichment, ticketing. The unified APIs support common objects, custom objects, and metadata operations.
  2. Passthrough: Call underlying native third-party provider APIs using credentials managed by Supaglue.
  3. Supaglue Management API: configure all aspects of your integrations.

API authentication

Your requests to the Supaglue API must contain an API key. You can generate an API key in the Management Portal on the Settings -> API Key page.

https://app.supaglue.io/applications/1dad4014-c295-422b-b384-1379396defd1/settings/api_keys

configuration-api-key

info

You will only be able to view the API key upon generation. Store it in a safe place.

When you regenerate an API key, the previous key is invalidated.

Pass in the API key in requests to the Supaglue API as a header:

curl http://api.supaglue.io/crm/v2/contacts \
-H 'x-api-key: ...'

Error codes

Supaglue returns the following error codes and problem types:

Status CodeError TypeDescription
304NOT_MODIFIED
400BAD_REQUEST_ERROR
401UNAUTHORIZED_ERROR
403FORBIDDEN_ERROR
404NOT_FOUND_ERROR
409CONFLICT_ERROR
422UNPROCESSABLE_ENTITY_ERROR
429TOO_MANY_REQUESTS_ERROR
499REMOTE_PROVIDER_ERRORSupaglue returns a custom HTTP status code 499 as a catch-all to pass back remote Provider error messages.
500INTERNAL_SERVER_ERRORSupaglue returns a 500 INTERNAL_SERVER_ERROR as a catch-all for Supaglue-related errors.
500CACHE_INVALIDATION_ERRORSupaglue returns a CACHE_INVALIDATION_ERROR for writes when it cannot refresh the value in your Destination after writing to a Provider.
502BAD_GATEWAY_ERROR
503SERVICE_UNAVAILABLE_ERROR
504GATEWAY_TIMEOUT_ERROR