1. Docs
  2. API Reference
  3. Get the admin's resume-state for this Application

Get the admin's resume-state for this Application

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

Authentication

  • Bearer Token Authorization

    JWT access token

Code samples

cURLJavaScriptPythonGo
curl -X GET "https://api.canopy.dev/portal/v1/accounts/{accountSlug}/applications/{appSlug}/me/state" \
  -H "Authorization: Bearer $CANOPY_TOKEN"

Responses

200 Returns the env slug the admin should land on for this App — their last-active env if recorded, else the App's default. Null when the App has no envs.
{
  "environment_slug": "string"
}

application/json

  • environment_slugstring*

    Slug of the env the admin should land on for this App. Resolved server-side from the admin's last-active env, falling back to the App's default. Null only when the App has no envs.

401 Invalid or expired token
403 This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)

Returned object

On this page

Related endpoints

GETGet the current Application
PATCHUpdate the Application name or settings
DELETEDelete an Application
PUTSet the App's default Environment
PUTUpdate the admin's resume-state for this Application