Documentation

Learn Archway

Quick start guides, API reference, and everything you need to build and deploy bridges.

Quick Start

Your first bridge

  1. Sign up
    Create an account at app.tryarchway.ai. No credit card required for the Free plan.
  2. Create a bridge
    Click "New Bridge" from the dashboard. Give it a name and optional description.
  3. Write your code
    Use the built-in editor. Your bridge exports a default async handler function that receives req and ctx parameters.
  4. Add secrets (optional)
    If your bridge needs API keys, ask your customer to provide them through the Customer Portal. Reference them with ctx.secret("NAME").
  5. Deploy
    Click "Deploy". Your bridge gets a unique URL and is immediately callable.
  6. Monitor
    View invocation logs, status codes, and response times from the bridge detail page.

API Reference

REST API overview

MethodEndpointDescription
GET/api/bridgesList all bridges
POST/api/bridgesCreate a new bridge
GET/api/bridges/:idGet bridge details
PATCH/api/bridges/:idUpdate a bridge
DELETE/api/bridges/:idDelete a bridge
POST/api/bridges/:id/deployDeploy a bridge
GET/api/bridges/:id/invocationsList invocations
GET/api/secretsList secrets (names only)
POST/api/secretsCreate a secret
GET/api/customersList customers

Example: Create a bridge

// POST /api/bridges
const response = await fetch(https://app.tryarchway.ai/api/bridges, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${token}`
},
body: JSON.stringify({
name: "CRM Sync",
description: "Syncs contacts from Salesforce",
code: `export default async function handler(req, ctx) { ... }`
})
});

Bridge handler signature

export default async function handler(
req: {
method: string;
headers: Record<string, string>;
body: any;
query: Record<string, string>;
},
ctx: {
secret(name: string): string;
bridgeId: string;
customerId: string;
}
)

Need help?

Check the knowledge base or reach out to our support team.

Get StartedLog In