API reference

One GraphQL endpoint for everything, a few REST endpoints for byte streams and webhooks, and the MCP server for AI agents.

Deplo has one API. The dashboard, the MCP server, your CI and your scripts all speak it.

POST  https://deplo.example.com/api/graphql      # the API
GET   https://deplo.example.com/api/graphql      # GraphiQL, in a browser

Every page in this section is generated from the live schema, so every query, mutation and subscription is here, each with who may call it, its arguments, and a working example.


First call

Create a token under Settings -> API tokens, then:

curl https://deplo.example.com/api/graphql \
  -H "Authorization: Bearer deplo_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"query":"{ me { username } apps { slug status } }"}'
{
  "data": {
    "me": { "username": "ada" },
    "apps": [{ "slug": "shop", "status": "active" }]
  }
}

Read Authentication for the three credentials and how a request picks its team, then Conventions for what every operation has in common.


GraphQL, by domain

Types

Other transports


See also

Did this page help you?

On this page