younifyd
Menu

Get Environment

Get an environment

GET/spaces/{spaceId}/environments/{environmentId}

Use it in a workflow

  1. Add a step and choose the Contentful connector.
  2. Pick the Get Environment action (under Contentful Content Management API).
  3. Fill in the fields below, then reference the result from later steps as {{getEnvironment.response.data}}.

Request

Path parameters

spaceIdstringrequired

ID of the space

environmentIdstringrequired

ID of the environment

Response

Returns 200 with an object. Read it in later steps with {{getEnvironment.response.data.<field>}}.

namestring

Name of the environment

sysobject
idstringrequired

Resource ID

typestringrequired

Resource type

environmentobject1 fields
spaceobjectrequired1 fields
createdByobjectrequired1 fields
updatedByobject1 fields
updatedAtstring (date-time)

Last update timestamp

versioninteger (int64)required

Resource version

json
{
  "name": "string",
  "sys": {
    "id": "string",
    "type": "string",
    "space": {
      "sys": {
        "id": "string",
        "type": "string",
        "linkType": "string"
      }
    },
    "createdBy": {
      "sys": {
        "id": "string",
        "type": "string",
        "linkType": "string"
      }
    },
    "version": 0,
    "environment": {
      "sys": {
        "id": "string",
        "type": "string",
        "linkType": "string"
      }
    },
    "updatedBy": {
      "sys": {
        "id": "string",
        "type": "string",
        "linkType": "string"
      }
    },
    "updatedAt": "2025-01-01T00:00:00Z"
  }
}

Need more? See the Contentful guide for connection setup and behaviour shared by every action.