1. Docs
  2. API Reference
  3. Get the current Application

Get the current Application

GET/portal/v1/accounts/{accountSlug}/applications/{appSlug}

Returns the active Application — resolved from the :accountSlug/:appSlug path by the guard chain — including its name, slug, default_environment_id, settings, and version. No identifier is taken in the body since the Application is already bound to the request context.

Authentication

Bearer TokenAuthorization

JWT access token. Never send alongside X-API-Key: a request carrying both is refused.

Requires capability applications.viewDeveloper Console

View the Account's Applications and Environments. Granted through an administrator role in the Admin Workspace; a valid token without it is refused with 403.

Responses

application/json

  • dataApplicationResponseDto*

application/json

  • errorApiErrorBodyDto*

application/json

  • errorApiErrorBodyDto*

Errors

When the request can't be completed, the response body includes a stable error code you can branch on.

403account.capability_requiredForbidden
When it happens

The signed-in user's administrator roles do not grant the capability this endpoint requires.

Remediation

Ask an account administrator to grant a role carrying the capability named in the Authentication section, then retry.

Returned object

Request
curl -X GET "https://auth.canopy-io.com/portal/v1/accounts/{accountSlug}/applications/{appSlug}" \
  -H "Authorization: Bearer $CANOPY_TOKEN"
Response
{
  "data": {
    "id": "string",
    "account_id": "string",
    "name": "string",
    "slug": "string",
    "default_environment_id": "string",
    "settings": {},
    "version": 0,
    "created_at": "2026-04-20T12:00:00.000Z",
    "updated_at": "2026-04-20T12:00:00.000Z"
  }
}
Related endpoints
PATCHUpdate the Application name or settings
DELETEDelete an Application
PUTSet the App's default Environment
GETGet the admin's resume-state for this Application
PUTUpdate the admin's resume-state for this Application
Was this page helpful?

Tell us how we can improve this guide.