younifyd
Menu

List API keys

List API keys

GET/keys

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the List API keys action (under Keys).
  3. Fill in the fields below, then reference the result from later steps as {{listApiKeys.response.data}}.

Request

Query parameters

offsetinteger

Number of keys to skip. Use with `limit` for pagination. Defaults to 0.

Default 0

limitinteger

Maximum number of keys to return. Use with `offset` for pagination. Defaults to 20.

Default 20

Response

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

resultsarray<object>

Items for the current page.

namestring | null

A human-readable name for the API key. Use this to identify the purpose of each key, such as "Frontend Search Key" or "Admin Key for CI/CD". This is optional and can be `null`.

descriptionstring | null

A longer description explaining the purpose or usage of this API key. Useful for documenting why the key was created and how it should be used. This is optional and can be `null`.

keystringrequired

The actual API key string to use in the `Authorization: Bearer <key>` header when making requests to Meilisearch. Keep this value secret and never expose it in client-side code.

uidstring (uuid)required

The unique identifier (UUID) for this API key. Use this to update or delete the key. The UID remains constant even if the key's name or description changes.

actionsarray<string>required

The list of actions (permissions) this key is allowed to perform. Examples include `documents.add`, `search`, `indexes.create`, `settings.update`, etc. Use `*` to grant all permissions.

indexesarray<string>required

The list of index UIDs this key can access. Use `*` to grant access to all indexes, including future ones. Patterns are also supported, e.g., `movies_*` matches any index starting with "movies_".

expiresAtstring | null

The expiration date and time of the key in RFC 3339 format. After this time, the key will no longer be valid for authentication. Set to `null` for keys that never expire.

createdAtstring (date-time)required

The date and time when this API key was created, formatted as an RFC 3339 date-time string. This is automatically set by Meilisearch and cannot be modified.

updatedAtstring (date-time)required

The date and time when this API key was last modified, formatted as an RFC 3339 date-time string. This is automatically updated by Meilisearch when the key's name or description changes.

offsetinteger

Number of items skipped.

limitinteger

Maximum number of items returned.

totalinteger

Total number of items matching the query.

json
{
  "results": [
    {
      "key": "string",
      "uid": "00000000-0000-0000-0000-000000000000",
      "actions": [
        "*"
      ],
      "indexes": [
        "string"
      ],
      "createdAt": "2025-01-01T00:00:00Z",
      "updatedAt": "2025-01-01T00:00:00Z",
      "name": "string",
      "description": "string",
      "expiresAt": "2025-01-01T00:00:00Z"
    }
  ],
  "offset": 0,
  "limit": 0,
  "total": 0
}

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

Was this page helpful?