Back to arky.io

API Reference

Complete SDK and REST API documentation for all Arky modules

Complete reference documentation for all Arky SDK modules and their corresponding REST API endpoints.

SDK Modules

The Arky SDK is organized into 20 domain-specific modules:

ModuleDescription
UserAuthentication (magic links), sessions, account management
BusinessBusiness settings, subscriptions, integrations, webhooks
E-shopProducts, orders, checkout, payments
CMSContent nodes and blocks
BookingServices, providers, bookings, availability
MediaFile uploads, image management
NotificationTrigger emails, track delivery
Promo CodesDiscount codes, conditions
DatabaseKey-value storage, scripts
LocationBusiness locations, zones, and countries/states reference data
WorkflowAutomation workflows, DAG execution, scheduling
CRMCustomers, customer auth, and audience subscriptions
ReactionsLikes, ratings, comments, and reviews
Email TemplatesReusable email templates with Handlebars
FormsForm builder and submission collection
TaxonomiesHierarchical categories and filters
AI AgentsConversational AI with chat management
ShippingShipping rates and label purchasing
PlatformCurrencies, integration services, webhook events

Base URL

All API endpoints are accessed through:

https://api.arky.io

Authentication

Most endpoints require authentication via Bearer token:

Authorization: Bearer YOUR_ACCESS_TOKEN
Tip

The SDK handles authentication automatically. Just configure getToken and setToken callbacks during initialization, and token refresh is handled for you.

Request Format

  • All request bodies use JSON format
  • Use Content-Type: application/json header
  • All timestamps are Unix timestamps (seconds)
  • All monetary amounts are in minor units (cents)

Response Format

Successful responses return the requested data directly:

{
  "id": "prod_abc123",
  "name": "Product Name",
  "createdAt": 1704067200
}

Paginated responses include cursor-based pagination:

{
  "items": [...],
  "cursor": "next_page_cursor"
}

Error Handling

Errors return appropriate HTTP status codes with details:

{
  "error": "VALIDATION_ERROR",
  "message": "Invalid email format",
  "details": {
    "field": "email",
    "reason": "must be a valid email address"
  }
}

See the Error Handling Guide for more details.