# Dispra Docs > Guides, the API reference and the CLI for building on Dispra. Start with Dispra Cloud: deploy, scale and configure your services from your own code, CI and tools. Every page is also plain markdown: add `.md` to its address (`https://docs.dispralabs.com/index.md` for the home page). The whole site as one document: https://docs.dispralabs.com/llms-full.txt. The API's base URL is https://devapi.dispralabs.com; its OpenAPI document is https://docs.dispralabs.com/openapi.json. ## Pages - [Dispra Docs](https://docs.dispralabs.com/index.md): Guides, the API reference and the CLI for building on Dispra. ## Guides - [Quickstart](https://docs.dispralabs.com/guides/quickstart.md): Deploy a service of your project from your own code in five minutes: create a key, check it works, start a deployment and follow it until it is live. - [Install the CLI](https://docs.dispralabs.com/guides/install-the-cli.md): dcloud is the Dispra Cloud CLI: deploy, follow logs, set variables, manage domains and apply dispra.yaml from your terminal, your CI and your AI coding agents.… - [Authentication](https://docs.dispralabs.com/guides/authentication.md): Every request is authenticated with a project key, sent as a bearer token: text Authorization: Bearer dsp_live_8Kq2Xa9vT3mQ7rW1yN5bC0dF4gH6jK2p Creating a key. - [Environment keys](https://docs.dispralabs.com/guides/environment-keys.md): A key can be limited to one environment when it is created. - [Idempotent requests](https://docs.dispralabs.com/guides/idempotent-requests.md): Networks fail. A request can time out after the server did the work, and retrying it blindly could deploy twice or create two services. Every write (POST, PUT,… - [Requests and responses](https://docs.dispralabs.com/guides/requests-and-responses.md): Base URL. https://devapi.dispralabs.com/v1/cloud. Every request is HTTPS. JSON in and out. Send JSON bodies with Content-Type: application/json; bodies are at … - [Rate limits](https://docs.dispralabs.com/guides/rate-limits.md): Each key has its own bucket of requests per minute: by default 600 for full, 60 for deploy and 300 for read. - [Use Dispra with AI agents](https://docs.dispralabs.com/guides/use-dispra-with-ai-agents.md): Claude Code, Codex, Cursor and other coding agents can deploy your services, read the logs of a failed deployment, fix the code and deploy again. - [Sign in from CI and sandboxes](https://docs.dispralabs.com/guides/sign-in-from-ci-and-sandboxes.md): Where no one can sign in through a browser, such as a CI pipeline, a deploy script or an AI agent's cloud sandbox, dcloud uses a project developer key instead:… - [Streaming logs](https://docs.dispralabs.com/guides/streaming-logs.md): Read a project's logs in pages, or follow a service's output live with Server-Sent Events. - [Webhooks](https://docs.dispralabs.com/guides/webhooks.md): Webhooks tell your systems when something happens in the project (a deployment went live or failed, a service crashed, a backup finished) without polling. - [Variables and references](https://docs.dispralabs.com/guides/variables-and-references.md): Every environment has project variables, shared by its services, and each service has its own service variables. - [Config as code: dispra.yaml](https://docs.dispralabs.com/guides/config-as-code-dispra-yaml.md): Describe an environment in one file, review what applying it would change, then apply exactly that. - [Calling from a browser](https://docs.dispralabs.com/guides/calling-from-a-browser.md): By default a key is server only: a request that carries a browser Origin header is refused with 403 origin_not_allowed. ## Cloud - [The apply result object](https://docs.dispralabs.com/objects/the-apply-result-object.md): What an apply did: the steps it ran and the deployments it started. - [The config plan object](https://docs.dispralabs.com/objects/the-config-plan-object.md): What applying a dispra.yaml file would change, step by step. Apply it with its plan_hash, so what you reviewed is exactly what runs. - [Export the environment](https://docs.dispralabs.com/api/export-the-environment.md): Writes the environment as a dispra.yaml file (as JSON): its groups, services with their settings, regions, domains and volumes. Variables are written as ${{ se… - [Apply a config file](https://docs.dispralabs.com/api/apply-a-config-file.md): Makes the plan again and runs it, in order: groups, variables, volumes, then each service (create, settings, regions, variables, group, domains, volume). - [Plan a config file](https://docs.dispralabs.com/api/plan-a-config-file.md): Shows what applying a dispra.yaml file to the environment would change, step by step, without changing anything. What the file leaves out is left as it is. Ser… - [Create a deployment](https://docs.dispralabs.com/api/create-a-deployment.md): Starts a deployment of the service: - deploy builds the branch's latest commit (or runs the service's image), - redeploy runs the live build again, so new vari… - [List deployments](https://docs.dispralabs.com/api/list-deployments.md): The service's deployments, newest first. - [Get a deployment](https://docs.dispralabs.com/api/get-a-deployment.md): One deployment: what it was built from, its state changes oldest first, and why it failed when it did. - [Cancel a deployment](https://docs.dispralabs.com/api/cancel-a-deployment.md): Stops a deployment that is queued, building or starting. - [Restart a service](https://docs.dispralabs.com/api/restart-a-service.md): Restarts the service's replicas from the live deployment, without a build. - [Start a service](https://docs.dispralabs.com/api/start-a-service.md): Starts a service you stopped. - [Stop a service](https://docs.dispralabs.com/api/stop-a-service.md): Stops the service, and its copies in other regions, until you start it. - [The environment object](https://docs.dispralabs.com/objects/the-environment-object.md): An environment is one copy of a project's services, variables and volumes: production (made with the project, never deleted), staging or any other name. - [Delete an environment](https://docs.dispralabs.com/api/delete-an-environment.md): Deletes an environment and stops its services. - [Create an environment](https://docs.dispralabs.com/api/create-an-environment.md): Adds an environment to the project: staging, preview-142, any name. - [List environments](https://docs.dispralabs.com/api/list-environments.md): Lists the project's environments with their service counts and status. - [The API call object](https://docs.dispralabs.com/objects/the-api-call-object.md): One request made with one of the project's keys, kept 30 days, refused and rate-limited calls included. - [List API calls](https://docs.dispralabs.com/api/list-api-calls.md): Every call made with the project's keys over the last 30 days, refused and rate-limited ones included, with a summary of the last 24 hours. - [The console session object](https://docs.dispralabs.com/objects/the-console-session-object.md): A single-use ticket for one terminal shell in a running replica. - [The deployment object](https://docs.dispralabs.com/objects/the-deployment-object.md): One build and rollout of a service. - [The log page object](https://docs.dispralabs.com/objects/the-log-page-object.md): A page of log lines, newest first, with the cursor of the page before it. - [Stream a deployment's logs](https://docs.dispralabs.com/api/stream-a-deployment-s-logs.md): Streams a deployment's build log (kind=build, the default) or its live output (kind=live), as Server-Sent Events. - [List logs](https://docs.dispralabs.com/api/list-logs.md): Searches the project's logs: build output and what its services write, newest first, in pages of up to 750 lines. - [List log filters](https://docs.dispralabs.com/api/list-log-filters.md): The services, levels, environments and deployments the project's logs of the last 7 days have, for filter menus. - [Open a shell](https://docs.dispralabs.com/api/open-a-shell.md): Mints a single-use ticket for a terminal shell in one running replica. - [Stream a service's logs](https://docs.dispralabs.com/api/stream-a-service-s-logs.md): Streams what the service's live deployment writes, as Server-Sent Events. - [The custom domain object](https://docs.dispralabs.com/objects/the-custom-domain-object.md): Your own domain in front of a service: a subdomain (a CNAME) or a zone apex (A records). - [The endpoint object](https://docs.dispralabs.com/objects/the-endpoint-object.md): One way into a service: a generated public HTTPS address, a public TCP port, a private address only the project's services can reach, or a custom domain. - [The status object](https://docs.dispralabs.com/objects/the-status-object.md): The short answer of a command: the object's id and the state it is now in. - [Get a custom domain](https://docs.dispralabs.com/api/get-a-custom-domain.md): The domain's status, its DNS records with what the last check found, and its certificate. - [Delete a custom domain](https://docs.dispralabs.com/api/delete-a-custom-domain.md): Removes the domain from the service. - [Connect a custom domain](https://docs.dispralabs.com/api/connect-a-custom-domain.md): When the domain's DNS provider supports Domain Connect: the address where you approve the records at your provider. - [Verify a custom domain](https://docs.dispralabs.com/api/verify-a-custom-domain.md): Checks the domain's DNS records now, instead of waiting for the next automatic check. - [Add a custom domain](https://docs.dispralabs.com/api/add-a-custom-domain.md): Adds your domain in front of the service. - [Preview a custom domain](https://docs.dispralabs.com/api/preview-a-custom-domain.md): Shows the DNS records a domain will need, its DNS provider and whether the provider can set them up automatically, before adding it. - [Create an endpoint](https://docs.dispralabs.com/api/create-an-endpoint.md): Generates a new address for the service, forwarding to a container port: - public_http: https://.dispracloud.app, - public_tcp: its own public port, open… - [List endpoints](https://docs.dispralabs.com/api/list-endpoints.md): Every way into the service: generated public HTTPS addresses, public TCP ports, private addresses and custom domains. - [Change an endpoint's port](https://docs.dispralabs.com/api/change-an-endpoint-s-port.md): Changes the container port an endpoint forwards to. - [Delete an endpoint](https://docs.dispralabs.com/api/delete-an-endpoint.md): The endpoint stops answering at once. - [Regenerate an endpoint](https://docs.dispralabs.com/api/regenerate-an-endpoint.md): Gives the endpoint a new random name (and a new public port for TCP). - [Check an address name](https://docs.dispralabs.com/api/check-an-address-name.md): Whether .dispracloud.app can be the service's address. Needs a key with read access or more. - [The project object](https://docs.dispralabs.com/objects/the-project-object.md): A project groups the environments and services of one product. - [Get a project](https://docs.dispralabs.com/api/get-a-project.md): Returns the project the key belongs to: its name, region, status, environments and when it last deployed. - [Update a project](https://docs.dispralabs.com/api/update-a-project.md): Renames the project or changes its description. - [Delete a project](https://docs.dispralabs.com/api/delete-a-project.md): Deletes the project permanently. - [List project activity](https://docs.dispralabs.com/api/list-project-activity.md): The project's activity feed, newest first: deployments, failures, crashes and out-of-memory restarts, setting changes, backups, with who did each. - [Preview a project deletion](https://docs.dispralabs.com/api/preview-a-project-deletion.md): Lists what deleting the project removes: its services, volumes (with their sizes and backups), environments, custom domains, and the counts of generated addres… - [The metrics object](https://docs.dispralabs.com/objects/the-metrics-object.md): A service's resource use over a range: CPU, memory and network out, for the service and each replica, from one-minute windows. - [The region object](https://docs.dispralabs.com/objects/the-region-object.md): Where a service runs. A service without a volume can run in several regions, behind one global address. - [The service object](https://docs.dispralabs.com/objects/the-service-object.md): A service is one app that runs in an environment: built from a GitHub repository or run from a container image, on one or more replicas, in one or more regions. - [The service group object](https://docs.dispralabs.com/objects/the-service-group-object.md): A named section of an environment's board. - [The service settings object](https://docs.dispralabs.com/objects/the-service-settings-object.md): Everything that decides how a service is built, started and sized. - [Create a service group](https://docs.dispralabs.com/api/create-a-service-group.md): Adds a group at the end of the environment's groups. - [List service groups](https://docs.dispralabs.com/api/list-service-groups.md): The environment's service groups, in order. - [Update a service group](https://docs.dispralabs.com/api/update-a-service-group.md): Renames a group, moves it to another position, or both. - [Delete a service group](https://docs.dispralabs.com/api/delete-a-service-group.md): Deletes a group. Its services and volumes stay, ungrouped. Needs a key with full access. - [List services](https://docs.dispralabs.com/api/list-services.md): Lists the environment's services, each with its latest deployment and its size. - [Create a service](https://docs.dispralabs.com/api/create-a-service.md): Creates a service in an environment. - [Get a service](https://docs.dispralabs.com/api/get-a-service.md): Returns a service with its latest deployment, its replicas and their states, its size, generated address and custom domains. - [Delete a service](https://docs.dispralabs.com/api/delete-a-service.md): Deletes a service: it stops, its addresses and custom domains stop answering, and copies in other regions go with it. - [List recent commits](https://docs.dispralabs.com/api/list-recent-commits.md): The headline and author of the commits of a repo service's deployments, read from GitHub when asked. - [Get the image's port](https://docs.dispralabs.com/api/get-the-image-s-port.md): The TCP ports the live deployment's image exposes. - [Move a service to a group](https://docs.dispralabs.com/api/move-a-service-to-a-group.md): Puts a service in a group (grp) or takes it out (grp: null). - [Test a health check](https://docs.dispralabs.com/api/test-a-health-check.md): Probes a path on one running replica the way health checks do, and answers whether it passed, its status and latency. - [Set service limits](https://docs.dispralabs.com/api/set-service-limits.md): Sets the CPU, memory and temporary disk of each replica. - [Get service metrics](https://docs.dispralabs.com/api/get-service-metrics.md): Returns CPU, memory and network out for the service and each replica over a range, from one-minute windows, with the limits in force. - [Add a region](https://docs.dispralabs.com/api/add-a-region.md): Runs the service in one more region, with the same source, settings and variables, behind one global address. - [List service regions](https://docs.dispralabs.com/api/list-service-regions.md): The regions the service runs in, its project's region first, with the replicas in each. - [Set a region's replicas](https://docs.dispralabs.com/api/set-a-region-s-replicas.md): Changes how many replicas run in one region (the project's own too). - [Remove a region](https://docs.dispralabs.com/api/remove-a-region.md): Stops running the service in a region. - [Get service settings](https://docs.dispralabs.com/api/get-service-settings.md): Returns the service's settings: its source, build and start commands, restart policy, size, replicas and health check, with the generation to send back when yo… - [Update service settings](https://docs.dispralabs.com/api/update-service-settings.md): Changes any of the service's settings in one step. - [Check a file on the branch](https://docs.dispralabs.com/api/check-a-file-on-the-branch.md): Whether a file, such as a Dockerfile, is in the service's repository on a branch (default the service's own). - [The revealed variable object](https://docs.dispralabs.com/objects/the-revealed-variable-object.md): A variable with its value. - [The variable object](https://docs.dispralabs.com/objects/the-variable-object.md): An environment variable of a service, or a project variable shared by its services. - [Reveal all project variables](https://docs.dispralabs.com/api/reveal-all-project-variables.md): Returns every project variable of the environment with its value, in one call. - [List project variables](https://docs.dispralabs.com/api/list-project-variables.md): The environment's project variables (shared by its services): names, versions, and which services use each. - [Set a project variable](https://docs.dispralabs.com/api/set-a-project-variable.md): Creates or replaces a project variable. - [Delete a project variable](https://docs.dispralabs.com/api/delete-a-project-variable.md): Removes a project variable. - [Reveal a project variable](https://docs.dispralabs.com/api/reveal-a-project-variable.md): Returns one project variable's value. - [Change variables in bulk](https://docs.dispralabs.com/api/change-variables-in-bulk.md): Applies 1 to 500 variable changes in one transaction, all or nothing: set, delete, or move. - [Get the variables graph](https://docs.dispralabs.com/api/get-the-variables-graph.md): Every variable of the environment and every reference between them ({{ owner.NAME }}), with the references that don't resolve. Never a value. Needs a key with … - [Validate variables text](https://docs.dispralabs.com/api/validate-variables-text.md): Checks .env-style text (NAME=value lines) for one service, or for the project variables, and answers a diagnostic per line: invalid names, duplicates, referenc… - [List service variables](https://docs.dispralabs.com/api/list-service-variables.md): The service's variables: names, kinds, scopes and when each changed. - [Set a service variable](https://docs.dispralabs.com/api/set-a-service-variable.md): Creates or replaces one variable of the service. - [Delete a service variable](https://docs.dispralabs.com/api/delete-a-service-variable.md): Removes a variable of the service. - [Reveal a service variable](https://docs.dispralabs.com/api/reveal-a-service-variable.md): Returns one variable's value. - [Reveal all service variables](https://docs.dispralabs.com/api/reveal-all-service-variables.md): Returns every variable of the service with its value, in one call. - [The backup object](https://docs.dispralabs.com/objects/the-backup-object.md): A point-in-time copy of a volume. - [The volume object](https://docs.dispralabs.com/objects/the-volume-object.md): Persistent, encrypted storage in an environment. - [Create a volume](https://docs.dispralabs.com/api/create-a-volume.md): Creates an encrypted volume in the environment. - [List volumes](https://docs.dispralabs.com/api/list-volumes.md): The environment's volumes with their size, use, attachments and last backup, deleted ones included during their 7 days. - [Get a volume](https://docs.dispralabs.com/api/get-a-volume.md): A volume with its size, use, state, attachments and backup policy. - [Update a volume](https://docs.dispralabs.com/api/update-a-volume.md): Renames, resizes or changes the backup policy of a volume. - [Delete a volume](https://docs.dispralabs.com/api/delete-a-volume.md): Deletes a volume. It can be restored for 7 days. Detach it from its service first. Needs a key with full access. - [List volume activity](https://docs.dispralabs.com/api/list-volume-activity.md): What happened to the volume, newest first: created, resized, attached, backed up, restored. - [Attach a volume](https://docs.dispralabs.com/api/attach-a-volume.md): Mounts the volume in a service of the same environment, from the service's next deployment. - [Detach a volume](https://docs.dispralabs.com/api/detach-a-volume.md): Unmounts the volume from the service from its next deployment. - [Create a backup](https://docs.dispralabs.com/api/create-a-backup.md): Backs up the volume now. - [List backups](https://docs.dispralabs.com/api/list-backups.md): The volume's backups, newest first. - [Stream volume events](https://docs.dispralabs.com/api/stream-volume-events.md): Streams the volume's backups, restores, attaches and detaches as Server-Sent Events. - [Move a volume to a group](https://docs.dispralabs.com/api/move-a-volume-to-a-group.md): Puts a volume in a group (grp) or takes it out (grp: null). - [Get volume metrics](https://docs.dispralabs.com/api/get-volume-metrics.md): Used and provisioned space over a range. - [Restore a backup](https://docs.dispralabs.com/api/restore-a-backup.md): Restores a backup (the newest by default) into a new volume in the same environment. - [Restore a deleted volume](https://docs.dispralabs.com/api/restore-a-deleted-volume.md): Brings back a deleted volume within its 7 days. - [The webhook object](https://docs.dispralabs.com/objects/the-webhook-object.md): An HTTPS address that receives the project's events. - [The webhook delivery object](https://docs.dispralabs.com/objects/the-webhook-delivery-object.md): One attempt to deliver an event to a webhook. - [List deliveries](https://docs.dispralabs.com/api/list-deliveries.md): Deliveries of every webhook of the project, newest first. - [Get the signing secret](https://docs.dispralabs.com/api/get-the-signing-secret.md): The project's webhook signing secret, masked, and when it was last rotated. - [Reveal the signing secret](https://docs.dispralabs.com/api/reveal-the-signing-secret.md): Returns the signing secret in full, to configure your receiver. - [Rotate the signing secret](https://docs.dispralabs.com/api/rotate-the-signing-secret.md): Makes a new signing secret and returns it once. - [List webhooks](https://docs.dispralabs.com/api/list-webhooks.md): The project's webhooks, with how their recent deliveries went. - [Create or update a webhook](https://docs.dispralabs.com/api/create-or-update-a-webhook.md): Creates the webhook with the id you choose, or updates it. - [Delete a webhook](https://docs.dispralabs.com/api/delete-a-webhook.md): Removes a webhook. Deliveries stop at once. Needs a key with full access. - [List a webhook's deliveries](https://docs.dispralabs.com/api/list-a-webhook-s-deliveries.md): The webhook's last deliveries: event, your endpoint's answer, attempt and when. - [Send a test event](https://docs.dispralabs.com/api/send-a-test-event.md): Queues a webhook.test delivery to the webhook. Needs a key with full access. ## Webhook events - [deploy.cancelled](https://docs.dispralabs.com/events/deploy-cancelled.md): A deployment was cancelled before it went live. - [deploy.failed](https://docs.dispralabs.com/events/deploy-failed.md): A deployment failed; the version that was live keeps serving. - [deploy.started](https://docs.dispralabs.com/events/deploy-started.md): A deployment of a service began. - [deploy.succeeded](https://docs.dispralabs.com/events/deploy-succeeded.md): A deployment is live and serving. - [project.deleted](https://docs.dispralabs.com/events/project-deleted.md): A project's deletion finished. - [service.crashed](https://docs.dispralabs.com/events/service-crashed.md): A service crashed or ran out of memory. - [service.created](https://docs.dispralabs.com/events/service-created.md): A service was created. - [service.deleted](https://docs.dispralabs.com/events/service-deleted.md): A service was deleted. - [service.restarted](https://docs.dispralabs.com/events/service-restarted.md): A service's replicas were restarted. - [volume.almost_full](https://docs.dispralabs.com/events/volume-almost-full.md): A volume is 90% full or more. - [volume.backup.failed](https://docs.dispralabs.com/events/volume-backup-failed.md): A backup of a volume failed. - [volume.backup.succeeded](https://docs.dispralabs.com/events/volume-backup-succeeded.md): A backup of a volume finished. - [volume.created](https://docs.dispralabs.com/events/volume-created.md): A volume was created. - [volume.deleted](https://docs.dispralabs.com/events/volume-deleted.md): A volume was deleted. - [webhook.test](https://docs.dispralabs.com/events/webhook-test.md): A test delivery. ## How it works - [config.apply](https://docs.dispralabs.com/flows/config-apply.md): How a dispra.yaml file becomes the state of an environment. - [deploy.lifecycle](https://docs.dispralabs.com/flows/deploy-lifecycle.md): What happens from a deployment request to a new version taking the traffic. - [request.check](https://docs.dispralabs.com/flows/request-check.md): How every request made with a key is checked before it reaches your project. - [shell.session](https://docs.dispralabs.com/flows/shell-session.md): How a terminal shell opens in a running replica. - [webhook.delivery](https://docs.dispralabs.com/flows/webhook-delivery.md): How an event reaches your webhook, and what happens when your endpoint does not answer. ## Features - [Config as code](https://docs.dispralabs.com/features/config-as-code.md): Describe an environment in dispra.yaml, review the plan, and apply it. - [Developer keys](https://docs.dispralabs.com/features/developer-keys.md): Project keys that let your code, scripts and CI manage everything inside a project. - [Environment keys](https://docs.dispralabs.com/features/environment-keys.md): Keys limited to one environment, for a CI job that should only touch staging. - [Log search and streaming](https://docs.dispralabs.com/features/log-search-and-streaming.md): Search a project's logs in pages of up to 750 lines, or stream a service's output live. - [Safe retries](https://docs.dispralabs.com/features/safe-retries.md): Every write takes an Idempotency-Key, so retrying after a timeout never does a thing twice. - [Terminal shell](https://docs.dispralabs.com/features/terminal-shell.md): A shell in a running replica, from your terminal. - [Webhooks](https://docs.dispralabs.com/features/webhooks.md): Signed HTTPS callbacks when deployments, services and volumes change. ## Errors - [Errors](https://docs.dispralabs.com/errors.md) ## Objects - [The log line object](https://docs.dispralabs.com/objects/the-log-line-object.md): One line a service wrote, or a build step. - [The webhook event object](https://docs.dispralabs.com/objects/the-webhook-event-object.md): The JSON body of a delivery: what happened, to which objects, and when.