Ivandt logo

List environments

List environments

Retrieves all environments and their associated keys for your account. Secret Key values are never returned - only metadata.

What's included:

  • Environment name
  • Key prefixes and IDs
  • Allowed origins for Public Keys
  • Last usage timestamps
GET
/environments

Response Body

curl -X GET "https://api.ivandt.com/v1/environments"
[
  {
    "name": "string",
    "secretKey": {
      "id": "string",
      "prefix": "string",
      "active": true,
      "lastUsedAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z"
    },
    "publicKey": {
      "id": "string",
      "prefix": "string",
      "allowedOrigins": [
        "string"
      ],
      "active": true,
      "lastUsedAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z"
    },
    "createdAt": "2019-08-24T14:15:22Z",
    "lastUsedAt": "2019-08-24T14:15:22Z"
  }
]