Menu
Create API key
Create API key
POST
/keysUse it in a workflow
- Add a step and choose the Meilisearch connector.
- Pick the Create API key action (under Keys).
- Fill in the fields below, then reference the result from later steps as
{{createApiKey.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"actions": [
"documents.add"
],
"indexes": [
"products"
],
"expiresAt": "2025-01-01T00:00:00Z",
"description": null,
"name": "Indexing Products API key",
"uid": "01b4bc42-eb33-4041-b481-254d00cce834"
}
Response
Returns 201 with an object. Read it in later steps with {{createApiKey.response.data.<field>}}.
{
"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"
}
Need more? See the Meilisearch guide for connection setup and behaviour shared by every action.
Was this page helpful?