Skip to content

App Functions

Gateway App Functions provide programmatic access to integration management, account operations, and workflow orchestration through the /api/2.0/app/* endpoints.

App Functions are application-level operations that enable:

  • Account Management: Create and manage customer accounts
  • Integration Lifecycle: Install, configure, and manage integrations
  • Action Execution: Trigger integration resources (order import, inventory sync, etc.)
  • Service Discovery: Explore available integration platforms
  • Flow Management: Access automation workflows
  • Intent-based Authorization: Generate scoped tokens for web components

All App Functions require Client Credentials OAuth2 authentication:

Terminal window
POST /oauth/token
Content-Type: application/json
{
"grant_type": "client_credentials",
"client_id": "your-client-id",
"client_secret": "your-client-secret",
"scope": "app:account-read app:integration-read app:integration-action"
}

Learn more about authentication →

Generate OAuth2 access tokens with fine-grained scopes for API access.

Create, list, and manage customer accounts for multi-tenant applications.

Full lifecycle management of e-commerce platform integrations.

Discover and explore available integration platforms and their capabilities.

Access automation workflows and flow definitions.

Generate intent tokens for account-scoped web component authorization.

Terminal window
POST /api/2.0/app/accounts
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"remote_id": "myapp_12345",
"name": "Acme Corporation",
"email": "[email protected]"
}
Terminal window
GET /api/2.0/app/integrations?page=1&per_page=15
Authorization: Bearer YOUR_TOKEN
Terminal window
POST /api/2.0/app/integrations/42/action
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"resource": "get_orders",
"params": {
"order_status": ["open"],
"date": "2024-01-15"
}
}
Terminal window
POST /api/2.0/app/intent/ACCT123
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"scopes": ["webcomponent:integration-read", "webcomponent:integration-event"]
}

All App Functions return standardized JSON responses:

Success (Single Resource):

{
"data": {
"id": 1,
"name": "Resource Name"
}
}

Success (Collection):

{
"data": [
{ "id": 1, "name": "Item 1" },
{ "id": 2, "name": "Item 2" }
],
"meta": {
"current_page": 1,
"total": 50,
"per_page": 15
}
}

App Functions use standard HTTP status codes:

CodeMeaningAction
401UnauthorizedRefresh or regenerate token
403ForbiddenCheck token scopes
404Not FoundVerify resource ID
422Validation ErrorFix request payload

Error Response:

{
"message": "The given data was invalid.",
"errors": {
"remote_id": ["The remote id has already been taken."]
}
}
ScopeDescription
app:account-readRead account data
app:account-createCreate accounts
app:account-updateUpdate accounts
app:intent-createGenerate intent tokens
app:integration-readRead integrations
app:integration-actionExecute integration actions
app:integration-claimClaim integrations for accounts
app:integration-createInstall integrations
app:integration-updateUpdate integration configuration
app:integration-deleteDelete integrations
app:service-attachView available services
app:flow-readRead flows

Explore each function in detail:

  1. Access Tokens - OAuth2 token generation
  2. Accounts - Account management CRUD operations
  3. Integrations - Integration lifecycle and actions
  4. Services - Service catalog and configuration
  5. Flows - Workflow management
  6. Intents - Intent-based authorization