Serve your links on your own domain, such as `https://go.acme.com/spring`. Add a hostname, create the one CNAME record shown in `dns`, and Appy checks DNS, issues the certificate and switches the domain to `active`. Every link of the account works on every active domain, and keeps working on `appy.to`. Business plan: 1 domain. Enterprise plan: up to 3 domains, and a domain can serve one SDK app's Universal Links and App Links. | Status | Meaning | |---|---| | `pending` | Waiting for the CNAME record. `lastError` explains what the last check found, if anything. | | `verifying` | The record is correct; the certificate is being issued. | | `active` | Live. Links on the domain are served over HTTPS. | | `error` | Needs your attention. `lastError` says what to fix; links on the domain redirect to the same path on `appy.to`. | Appy re-checks pending and verifying domains every minute for the first hour, then every 10 minutes, and gives up with `error` after 72 hours. Active domains are re-checked daily. `POST .../verify` runs a check immediately.
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Appy Domains API
version: 1.0.0
summary: Create and manage smart links, read click statistics, connect AI assistants over MCP, and power the Appy mobile SDKs.
contact:
name: Appy support
url: https://appy.to/support
email: contact@appy.to
description: 'The Appy API has two audiences. **Your servers** use it to create and manage smart links, read their statistics and register the
mobile apps that use the Appy SDK. Everything the dashboard does with links, you can do from a CI
pipeline, a CMS hook or an internal tool. **Your AI assistants** get the same abilities through the Appy MCP server at `https://mcp.appy.to`:
Claude, Cursor, VS Code, Windsurf and other MCP clients can create and edit links and read their
statistics with a secret key. **Your mobile apps** talk to the two `/v1/sdk` endpoints through the Appy iOS and Android SDKs. You normally never call those endpoints yourself; they are documented so you can audit exactly
what the SDKs send. ## Quick start
```bash
curl https://api.appy.to/v1/links \
-H "Authorization: Bearer appy_sk_..." \
-H "Content-Type: application/json" \
-d ''{
"slug": "spring-sale",
"fallbackUrl": "https://acme.com/spring",
"deeplinkUrl": "acme://sale/spring",
"targets": {
"iphone": "https://apps.apple.com/app/id123456789",
"android": "https://play.google.com/store/apps/details?id=com.acme.shop"
}
}''
```
The response contains the short link (`https://appy.to/spring-sale`). iPhones go to the App Store
target, Android phones to Google Play, everything else to `fallbackUrl`. When `deeplinkUrl` is set,
phones first try to open the app and fall back to the store if it is not installed. ## Authentication
Every request carries one credential in the `Authorization` header:
```
Authorization: Bearer
```
| Credential | Looks like | Use it for | Where it lives |
|---|---|---|---|
| Secret key | `appy_sk_` + 40 characters | Links, statistics, apps | Your servers only. Never ship it in an app or a web page. |
| Publishable key | `appy_pk_` + 32 characters | `/v1/sdk/*` only | Inside your mobile app. It is public by design. |
| Dashboard session | a JWT, or the `accessToken` cookie | Everything except `/v1/sdk/*`; the only credential that can create or revoke secret keys | Your signed-in Appy session. |
Create a secret key in the dashboard (API keys page) or with `POST /v1/api-keys` while signed in to
Appy. Secret keys, the `/v1` link and statistics endpoints and the MCP server need the Business or
Enterprise plan; every plan can list and revoke its keys. The full key is returned
exactly once; Appy stores only a SHA-256 hash of it. An account can hold 10 active keys. A publishable
key is issued automatically when you register an app with `POST /v1/apps`. A secret key acts on behalf of the account that created it and inherits that account''s plan: the same
link limits and feature rules apply to the API as to the dashboard. ## Errors
Errors use conventional HTTP status codes and always have the same body:
```json
{
"error": {
"code": "validation_failed",
"message": "fallbackUrl must be a valid http(s) URL",
"requestId": "4b6f1c2e-7c1a-4bd6-9f36-2f1f0f7b8c11"
}
}
```
| Status | `code` | Meaning |
|---|---|---|
| 400 | `invalid_request` | The body is not valid JSON, has the wrong shape, or contains an unknown field. |
| 400 | `validation_failed` | The JSON is well formed but a value is not acceptable. `message` names the field. |
| 401 | `unauthorized` | Missing, malformed, unknown or revoked credential. |
| 403 | `forbidden` | The credential is valid but not allowed on this endpoint (for example a publishable key on `/v1/links`). |
| 403 | `plan_required` | The feature needs a higher plan. |
| 403 | `limit_reached` | A plan or account limit is exhausted (links, API keys, apps, custom domains). |
| 404 | `not_found` | The resource does not exist or belongs to another account. |
| 409 | `conflict` | The slug, subdomain or custom domain hostname is already taken. |
| 429 | `rate_limited` | Too many requests. Wait for the `Retry-After` seconds. |
| 500 | `internal_error` | Something failed on Appy''s side. Retrying is safe for reads. |
| 503 | `service_unavailable` | A dependency is temporarily down. Retry with backoff.'
x-logo:
url: https://appy.to/assets/appylogo.svg
altText: Appy
servers:
- url: https://api.appy.to
description: Production
security:
- secretKey: []
- dashboardSession: []
tags:
- name: Domains
description: 'Serve your links on your own domain, such as `https://go.acme.com/spring`. Add a hostname, create
the one CNAME record shown in `dns`, and Appy checks DNS, issues the certificate and switches the
domain to `active`. Every link of the account works on every active domain, and keeps working on
`appy.to`. Business plan: 1 domain. Enterprise plan: up to 3 domains, and a domain can serve one
SDK app''s Universal Links and App Links.
| Status | Meaning |
|---|---|
| `pending` | Waiting for the CNAME record. `lastError` explains what the last check found, if anything. |
| `verifying` | The record is correct; the certificate is being issued. |
| `active` | Live. Links on the domain are served over HTTPS. |
| `error` | Needs your attention. `lastError` says what to fix; links on the domain redirect to the same path on `appy.to`. |
Appy re-checks pending and verifying domains every minute for the first hour, then every 10 minutes,
and gives up with `error` after 72 hours. Active domains are re-checked daily. `POST .../verify`
runs a check immediately.'
paths:
/v1/domains:
get:
tags:
- Domains
operationId: listDomains
summary: List custom domains
description: The account's custom domains, oldest first, and how many the plan allows.
responses:
'200':
description: The domains and the plan limit.
content:
application/json:
schema:
$ref: '#/components/schemas/DomainList'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/DomainPlan'
'429':
$ref: '#/components/responses/RateLimited'
post:
tags:
- Domains
operationId: createDomain
summary: Add a custom domain
description: 'Adds a hostname in `pending` status and returns the DNS record to create. Use a subdomain such as
`go.acme.com`: it needs one CNAME record. A root domain such as `acme.com` is accepted, but most
DNS providers cannot put a CNAME on the root; `dns.apex` is then true and `dns.note` explains
the options. Non-ASCII hostnames are stored in their ASCII (punycode) form.
Rejected with `validation_failed`: IP addresses, `localhost`, wildcards, hostnames on `appy.to`,
public suffixes such as `co.uk`, invalid labels and names longer than 253 characters. A hostname
used by any account, in any status except removed, is a `conflict`.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DomainCreate'
example:
hostname: go.acme.com
rootRedirectUrl: https://acme.com
responses:
'201':
description: The domain was added. Create the record in `dns`, then call verify or wait for the automatic checks.
headers:
Location:
description: Path of the new domain.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Domain'
example:
id: 2d1f6b0e-58c4-4d0a-9c39-0b8f6e7f1a24
hostname: go.acme.com
status: pending
isDefault: false
rootRedirectUrl: https://acme.com
appId: null
dns:
type: CNAME
name: go
host: go.acme.com
value: cname.appy.to
apex: false
note: null
verification:
- type: TXT
name: _cf-custom-hostname.go.acme.com
value: 5cc07c04-ea62-4a5a-95f0-419334a875a4
purpose: ownership
lastError: null
lastCheckedAt: null
verifiedAt: null
createdAt: '2026-10-01T10:00:00Z'
updatedAt: '2026-10-01T10:00:00Z'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/DomainPlan'
'409':
$ref: '#/components/responses/DomainConflict'
'429':
$ref: '#/components/responses/RateLimited'
/v1/domains/{domainId}:
parameters:
- $ref: '#/components/parameters/DomainId'
get:
tags:
- Domains
operationId: getDomain
summary: Get a custom domain
responses:
'200':
description: The domain.
content:
application/json:
schema:
$ref: '#/components/schemas/Domain'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/DomainPlan'
'404':
$ref: '#/components/responses/NotFound'
patch:
tags:
- Domains
operationId: updateDomain
summary: Update a custom domain
description: '* `isDefault: true` makes an `active` domain the account default: link `url` fields, the dashboard
and QR codes use it. Only one domain is the default; the previous one is cleared. Changing the
default never breaks existing URLs.
* `rootRedirectUrl` is where `https://go.acme.com/` and unknown slugs on the domain go. `null`
clears it, and visitors see a neutral not-found page.
* `appId` (Enterprise) makes the domain serve that app''s `apple-app-site-association` and
`assetlinks.json`, and lets the SDK resolve links on it. Add `applinks:go.acme.com` to the app''s
Associated Domains, an `autoVerify` intent filter for the host, and the host to the SDK''s
`linkDomains`. `null` clears it.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DomainUpdate'
example:
isDefault: true
rootRedirectUrl: https://acme.com
responses:
'200':
description: The updated domain.
content:
application/json:
schema:
$ref: '#/components/schemas/Domain'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/DomainPlan'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
delete:
tags:
- Domains
operationId: deleteDomain
summary: Remove a custom domain
description: 'Disconnects the domain and frees its slot and hostname. If it was the default, link URLs go back to
`appy.to`. Remove the CNAME record afterwards.'
responses:
'204':
description: The domain was removed.
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/DomainPlan'
'404':
$ref: '#/components/responses/NotFound'
'503':
$ref: '#/components/responses/Unavailable'
/v1/domains/{domainId}/verify:
parameters:
- $ref: '#/components/parameters/DomainId'
post:
tags:
- Domains
operationId: verifyDomain
summary: Check a custom domain now
description: 'Runs the DNS and certificate check immediately and returns the updated domain. A domain in
`error` starts a fresh 72-hour checking window. At most one check per 10 seconds per domain;
more return `429` with `Retry-After`.'
responses:
'200':
description: The domain after the check.
content:
application/json:
schema:
$ref: '#/components/schemas/Domain'
examples:
wrongTarget:
summary: The CNAME points elsewhere
value:
id: 2d1f6b0e-58c4-4d0a-9c39-0b8f6e7f1a24
hostname: go.acme.com
status: pending
isDefault: false
rootRedirectUrl: null
appId: null
dns:
type: CNAME
name: go
host: go.acme.com
value: cname.appy.to
apex: false
note: null
verification: []
lastError: go.acme.com points to acme.netlify.app; it must point to cname.appy.to.
lastCheckedAt: '2026-10-01T10:02:00Z'
verifiedAt: null
createdAt: '2026-10-01T10:00:00Z'
updatedAt: '2026-10-01T10:02:00Z'
active:
summary: Live
value:
id: 2d1f6b0e-58c4-4d0a-9c39-0b8f6e7f1a24
hostname: go.acme.com
status: active
isDefault: false
rootRedirectUrl: null
appId: null
dns:
type: CNAME
name: go
host: go.acme.com
value: cname.appy.to
apex: false
note: null
verification: []
lastError: null
lastCheckedAt: '2026-10-01T10:07:00Z'
verifiedAt: '2026-10-01T10:07:00Z'
createdAt: '2026-10-01T10:00:00Z'
updatedAt: '2026-10-01T10:07:00Z'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/DomainPlan'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'503':
$ref: '#/components/responses/Unavailable'
components:
headers:
RateLimitReset:
description: Unix time in seconds when the window resets.
schema:
type: integer
example: 1790330460
RateLimitRemaining:
description: Requests left in the current window.
schema:
type: integer
example: 598
RateLimitLimit:
description: Requests allowed in the current one-minute window.
schema:
type: integer
example: 600
RetryAfter:
description: Seconds to wait before retrying.
schema:
type: integer
example: 12
schemas:
DomainList:
type: object
required:
- data
- limits
properties:
data:
type: array
items:
$ref: '#/components/schemas/Domain'
limits:
type: object
required:
- used
- max
properties:
used:
type: integer
description: Domains on the account
any status.: null
example: 1
max:
type: integer
description: 'The plan limit: 1 on Business, 3 on Enterprise.'
example: 3
DomainUpdate:
type: object
additionalProperties: false
minProperties: 1
properties:
isDefault:
type: boolean
description: Only an active domain can become the default.
rootRedirectUrl:
type:
- string
- 'null'
format: uri
maxLength: 2048
description: Null clears it.
appId:
type:
- string
- 'null'
format: uuid
description: Enterprise. An app of this account; null clears it.
DomainCreate:
type: object
required:
- hostname
additionalProperties: false
properties:
hostname:
type: string
maxLength: 253
example: go.acme.com
rootRedirectUrl:
type:
- string
- 'null'
format: uri
maxLength: 2048
example: https://acme.com
Domain:
type: object
required:
- id
- hostname
- status
- isDefault
- rootRedirectUrl
- appId
- dns
- verification
- lastError
- lastCheckedAt
- verifiedAt
- createdAt
- updatedAt
properties:
id:
type: string
format: uuid
hostname:
type: string
description: Lowercase ASCII hostname. Unicode names are stored as punycode.
example: go.acme.com
status:
type: string
enum:
- pending
- verifying
- active
- error
description: '`pending`: waiting for the CNAME record. `verifying`: the record is correct and the certificate is being issued. `active`: live. `error`: see `lastError`.'
isDefault:
type: boolean
description: Link `url` fields, the dashboard and QR codes use this domain while it is active.
rootRedirectUrl:
type:
- string
- 'null'
format: uri
description: Where the bare domain and unknown slugs go. Null shows a neutral not-found page.
example: https://acme.com
appId:
type:
- string
- 'null'
format: uuid
description: Enterprise. The SDK app whose Universal Links and App Links this domain serves.
dns:
$ref: '#/components/schemas/DomainDNS'
verification:
type: array
description: Extra records the certificate provider asks for, if any. Most domains only need the CNAME in `dns`.
items:
$ref: '#/components/schemas/DomainVerificationRecord'
lastError:
type:
- string
- 'null'
description: In `error`, what to fix. In `pending`, what the last check found (for example a CNAME that points elsewhere), or null when no record was found yet.
example: go.acme.com points to acme.netlify.app; it must point to cname.appy.to.
lastCheckedAt:
type:
- string
- 'null'
format: date-time
verifiedAt:
type:
- string
- 'null'
format: date-time
description: When the domain first became active.
createdAt:
type: string
format: date-time
updatedAt:
type: string
format: date-time
DomainDNS:
type: object
required:
- type
- name
- host
- value
- apex
- note
description: The record to create at the DNS provider.
properties:
type:
type: string
enum:
- CNAME
name:
type: string
description: Record name relative to the registered domain; `@` for a root domain.
example: go
host:
type: string
description: The full hostname the record is for.
example: go.acme.com
value:
type: string
description: The CNAME target.
example: cname.appy.to
apex:
type: boolean
description: True for a root domain such as `acme.com`.
note:
type:
- string
- 'null'
description: 'For root domains: explains that the DNS provider must support CNAME flattening or ALIAS/ANAME records.'
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
- requestId
properties:
code:
type: string
enum:
- invalid_request
- validation_failed
- unauthorized
- forbidden
- plan_required
- limit_reached
- not_found
- conflict
- rate_limited
- internal_error
- service_unavailable
message:
type: string
description: Human-readable explanation. Do not parse it; branch on `code`.
requestId:
type: string
description: Identifier of the request, also sent as `X-Request-ID`.
DomainVerificationRecord:
type: object
required:
- type
- name
- value
- purpose
properties:
type:
type: string
enum:
- TXT
- CNAME
name:
type: string
description: Full record name.
example: _cf-custom-hostname.go.acme.com
value:
type: string
example: 5cc07c04-ea62-4a5a-95f0-419334a875a4
purpose:
type: string
enum:
- ownership
- certificate
responses:
DomainPlan:
description: The plan does not include custom domains, the domain limit is reached, or the credential is not allowed here.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
planRequired:
value:
error:
code: plan_required
message: Custom domains are available on the Business plan (1 domain) and the Enterprise plan (up to 3 domains).
requestId: 4b6f1c2e-7c1a-4bd6-9f36-2f1f0f7b8c11
limitReached:
value:
error:
code: limit_reached
message: Your Business plan includes 1 custom domain and it is in use. Remove it to add another, or upgrade to Enterprise for up to 3.
requestId: 4b6f1c2e-7c1a-4bd6-9f36-2f1f0f7b8c11
Conflict:
description: The slug, subdomain or hostname is already taken.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: conflict
message: This slug is already in use. Choose another one.
requestId: 4b6f1c2e-7c1a-4bd6-9f36-2f1f0f7b8c11
NotFound:
description: The resource does not exist or belongs to another account.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: not_found
message: Link not found.
requestId: 4b6f1c2e-7c1a-4bd6-9f36-2f1f0f7b8c11
RateLimited:
description: Too many requests.
headers:
Retry-After:
$ref: '#/components/headers/RetryAfter'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
X-RateLimit-Reset:
$ref: '#/components/headers/RateLimitReset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: rate_limited
message: Rate limit exceeded. Retry after the number of seconds in the Retry-After header.
requestId: 4b6f1c2e-7c1a-4bd6-9f36-2f1f0f7b8c11
Unauthorized:
description: Missing, invalid or revoked credential.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: unauthorized
message: Invalid or revoked API key.
requestId: 4b6f1c2e-7c1a-4bd6-9f36-2f1f0f7b8c11
Unavailable:
description: A dependency is temporarily unavailable. Retry with backoff.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: service_unavailable
message: The link service is temporarily unavailable. Retry shortly.
requestId: 4b6f1c2e-7c1a-4bd6-9f36-2f1f0f7b8c11
DomainConflict:
description: The hostname is already added to this or another account.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error:
code: conflict
message: go.acme.com is already connected to another Appy account. If you own this domain
contact support and we will help you move it.: null
requestId: 4b6f1c2e-7c1a-4bd6-9f36-2f1f0f7b8c11
BadRequest:
description: The request is malformed or a value failed validation.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
invalidRequest:
value:
error:
code: invalid_request
message: Unknown field "titel".
requestId: 4b6f1c2e-7c1a-4bd6-9f36-2f1f0f7b8c11
validation:
value:
error:
code: validation_failed
message: fallbackUrl must be a valid http(s) URL
requestId: 4b6f1c2e-7c1a-4bd6-9f36-2f1f0f7b8c11
parameters:
DomainId:
name: domainId
in: path
required: true
schema:
type: string
format: uuid
securitySchemes:
secretKey:
type: http
scheme: bearer
bearerFormat: appy_sk_…
description: Secret API key for server-to-server calls.
publishableKey:
type: http
scheme: bearer
bearerFormat: appy_pk_…
description: Publishable app key, used by the mobile SDKs on `/v1/sdk` endpoints only.
dashboardSession:
type: http
scheme: bearer
bearerFormat: JWT
description: Access token of a signed-in Appy session.
sessionCookie:
type: apiKey
in: cookie
name: accessToken
description: The session cookie set by appy.to. Browsers on appy.to send it automatically.
x-tagGroups:
- name: Server API
tags:
- Account
- Links
- Domains
- Statistics
- Apps
- Attribution
- Postbacks
- API keys
- name: Client API
tags:
- Client API
x-provenance:
method: harvested
publisher: Appy
source: https://api.appy.to/v1/openapi.yaml
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)