younifyd
Menu

Get All Api Keys

Get all API keys

GET/spaces/{spaceId}/api_keys

Use it in a workflow

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

Request

Path parameters

spaceIdstringrequired

ID of the space

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 {{getAllApiKeys.response.data.<field>}}.

totalinteger

Total number of API keys

skipinteger

Number of API keys skipped

limitinteger

Maximum number of API keys returned

sysobject
typestring

One ofArray

itemsarray<object>
sysobjectrequired10 fields
namestringrequired

Name of the API key

descriptionstringrequired

Description of the API key

accessTokenstringrequired

The Content Delivery API access token

preview_api_keyobject1 fields
environmentsarray<object>required1 fields

List of environments this API key can access

json
{
  "total": 0,
  "skip": 0,
  "limit": 0,
  "sys": {
    "type": "Array"
  },
  "items": [
    {
      "sys": {
        "id": "string",
        "archivedAt": "2025-01-01T00:00:00Z",
        "contentType": {
          "sys": {
            "id": "string",
            "linkType": "ContentType",
            "type": "Link"
          }
        },
        "createdAt": "2025-01-01T00:00:00Z",
        "environment": {
          "sys": {
            "id": "string",
            "linkType": "Environment",
            "type": "Link"
          }
        },
        "publishedAt": "2025-01-01T00:00:00Z",
        "space": {
          "sys": {
            "id": "string",
            "linkType": "Environment",
            "type": "Link"
          }
        },
        "type": "string",
        "updatedAt": "2025-01-01T00:00:00Z",
        "version": 0
      },
      "name": "string",
      "description": "string",
      "accessToken": "string",
      "environments": [
        {
          "sys": {
            "id": "string",
            "linkType": "Environment",
            "type": "Link"
          }
        }
      ],
      "preview_api_key": {
        "sys": {
          "id": "string",
          "type": "PreviewApiKey"
        }
      }
    }
  ]
}

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