Skip to Content
Aperture
REST API

REST API overview

Base URL, authentication, request and response conventions, and errors.

Everything in the dashboard and CLI goes through the REST API, so you can do the same from any language.

Base URL

https://aperture-server.mountaindev.com/api/v1

Self-hosted servers use their own host with the same /api/v1 prefix. All paths in this reference are relative to it.

Authentication

Send a token in the Authorization header:

curl https://aperture-server.mountaindev.com/api/v1/teams \
  -H "Authorization: Bearer $APERTURE_TOKEN"

Get a login token from POST /signin, or create a personal API key or a project key. See Authentication for the differences.

POST /signin

curl -X POST https://aperture-server.mountaindev.com/api/v1/signin \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com", "password": "…"}'
{ "data": { "jwt": "eyJ…", "claims": { "sub": "…", "email": "you@example.com", "exp": 1795000000 } } }

Wrong credentials return 401 {"error": "Unauthorized"}.

POST /register

Creates an account and returns a token in the same shape as /signin. Registration can be turned off on a server, in which case it returns 422.

{ "user": { "username": "you@example.com", "password": "at least 8 chars", "name": "You" } }

GET /health

No authentication. Returns 200 {"status": "ok"}.

Conventions

  • Request and response bodies are JSON, except deploy (multipart).
  • Most responses wrap their result in data: {"data": {...}} or {"data": [...]}. Exceptions are noted per endpoint.
  • IDs are UUIDs. Timestamps are ISO 8601 in UTC.
  • Create endpoints wrap their input in a resource key, for example {"project": {...}}.
  • Deletes return 204 with no body.
  • List endpoints aren't paginated.
  • Request bodies are limited to 8 MB.

Errors

StatusTypical bodyMeaning
400{"errors": {"detail": "Bad Request"}}Malformed ID or missing required wrapper key.
401{"error": "unauthenticated"}, {"error": "invalid_token"}, {"error": "no_resource_found"}Missing, invalid, expired or revoked token.
401{"error": "You are not authorized to …"}Not a member of the team, or your role can't do this.
401{"error": "unauthorized"}A project key was used on a route that doesn't accept it.
402{"error": "quota_exceeded", "metric": "…", "limit": 100, "used": 100, "plan": "free"}Plan limit reached. See Billing.
403{"error": "Forbidden"}Role not allowed (project keys, billing, removing the owner).
404{"error": "Not Found"} or {"errors": {"detail": "Not Found"}}Unknown resource or route.
422{"errors": {"name": ["can't be blank"]}} or {"error": "…"}Validation failed.
500{"errors": {"detail": "Internal Server Error"}}Server error.

Most permission failures return 401 with a message rather than 403. Validation failures return 422 with an errors object keyed by field.

Endpoints

AreaPage
Deploy, run, schedule, cancel, list jobs and executionsJobs
Inbound triggersTriggers
Projects and project keysProjects
Teams, members, invitationsTeams
SecretsSecrets
Personal API keysAPI keys
Outbound webhooksWebhooks
Stats and billingStats and billing
Live execution updatesRealtime

On this page