What You’ll Learn
- Understand core concepts: connectors, resources, actions, credentials, executions
- List available connectors and render them in your app
- Inspect resources/actions to auto-generate config UIs
- Create and store user credentials
- Execute actions
- Handle errors, logging, and production readiness
Key Concepts
Term | Definition |
---|---|
Connector | A packaged integration for a third-party app (e.g., Klaviyo, Shippo). Each connector exposes resources and actions. |
Resource | A connector-defined entity (e.g., Order, Address) that bundles its schema and associated actions. |
Action | An operation available on a resource (e.g., CreateAddress). Defines method, path, params, and responses. |
Credential | The user’s authentication with a third-party app (OAuth 2.0, API key, etc.) required to run actions. |
Execution | A single run of an action. Returns third-party response plus Alloy metadata. |
Prerequisites
- API Key: Generate in Alloy Dashboard → Settings → API Keys
- Required headers:
Authorization: Bearer <YOUR_API_KEY>
x-api-version: 2025-09
- Store API keys securely (e.g., Secrets Manager, Vault). Never expose them client-side.
Step 0: Create a User
Create a user record in Alloy Automation Platform before managing credentials or executions for each of your end-users. We support multi-tenancy so you can securely isolate each user’s data and credentials.userId
and pass it as userId
in subsequent calls.
Step 1: Discover Connectors
List all available connectors to power your app’s integration marketplace. You can use this data to render logos, names of the integration you support on your app.id
in later steps as connectorId
.
Step 2: Explore Resources & Actions
List resources
You can list resources for a connector to discover the available entities and their actions. For example, if you application is integrating with Hubspot, you can dynamically create a list of actions a end-user can perform for Hubspot.Get action details
You can get action details to fetch the action schema and parameters. For example, if you application is integrating with Hubspot, you can get the action details for thecreateContact
action.
Step 3: Manage Credentials
Before executing actions, you need to create a credential for a user for a specific connector.Check credential requirements
Before creating a credential, you need to check the credential requirements for the connector.Create credential
You can create a credential for a user for a specific connector.oauthUrl
where user will authorize your app.
For API key/HTTP auth, you’ll get credentialId
immediately.
List credentials for a User
credentialId
and pass it as credentialId
in subsequent calls.
Step 4: Execute an Action
This is where you perform the actual action for a specific connectors. For example to create a contact in Hubspot, you would usehubspot
as connectorId
and createContact
as actionId
.
credentialId is the credentialId
you got from the previous step. queryParameters, requestBody, additionalHeaders, and pathParams are the parameters you got from the action details step.
responseData
.
Error Handling & Observability
All endpoints return structured error responses:- Show human-friendly messages; log technical details
- Retry on 429/5xx
- Add monitoring/logging for executions
Next Steps
- Browse the full API reference
- Talk to your Alloy partner manager about upcoming connectors
- Send feedback or open a support ticket