younifyd
Menu

Get All Spaces

Get all spaces

GET/spaces

Use it in a workflow

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

Request

Query parameters

limitinteger

Maximum number of items to return

Default 100

skipinteger

Number of items to skip

Default 0

Response

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

itemsarray<object>
defaultLocalestring

Default locale of the space

namestringrequired

Name of the space

sysobjectrequired
limitinteger

Maximum number of spaces returned

skipinteger

Number of spaces skipped

sysobject
typestring

One ofArray

totalinteger

Total number of spaces

json
{
  "items": [
    {
      "name": "string",
      "sys": {},
      "defaultLocale": "string"
    }
  ],
  "limit": 0,
  "skip": 0,
  "sys": {
    "type": "Array"
  },
  "total": 0
}

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

Was this page helpful?