> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usefini.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create action

> Create a rule-invoked action.

Creates an [`Action`](/en/api-reference/actions-and-attributes#action-or-attribute-object): an outbound API call invoked by a [Rulebook](/en/automations/rulebook) Tool node. Omit `alwaysGet` or send `false`; sending `true` creates an [Attribute](/en/api-reference/create-attribute) instead.

<Note>
  This route creates the record only. Add the input and output schema with [Update action](/en/api-reference/update-action), then add its HTTP calls with [Create data step](/en/api-reference/create-data-step).
</Note>

## Headers

<ParamField header="Authorization" type="string" required>
  Bearer token containing your Fini workspace API key. Format: `Bearer fini_...` The key needs `write` scope.
</ParamField>

<ParamField header="Content-Type" type="string" required>
  `application/json`
</ParamField>

## Body parameters

<ParamField body="name" type="string" required>
  Display name.
</ParamField>

<ParamField body="description" type="string">
  Optional human-readable description.
</ParamField>

<ParamField body="alwaysGet" type="boolean" default="false">
  Leave as `false` for an action. `true` creates an attribute that runs automatically each conversation.
</ParamField>

<ParamField body="source" type="string">
  Optional source. Current values include `ui`, `api`, `widget`, and integration providers such as `zendesk` and `intercom`.
</ParamField>

## Response

Returns the created [`Action / Attribute`](/en/api-reference/actions-and-attributes#action-or-attribute-object). `inputSchema` and `outputSchema` start empty.

## Errors

<AccordionGroup>
  <Accordion title="400 Bad Request" icon="circle-exclamation">
    The body is malformed or `source` uses an unsupported value.
  </Accordion>

  <Accordion title="401 Unauthorized" icon="lock">
    The API key is missing, malformed, revoked, or invalid.
  </Accordion>

  <Accordion title="403 Forbidden" icon="shield-halved">
    The API key does not include the `write` scope required for this route.
  </Accordion>

  <Accordion title="500 Internal Server Error" icon="triangle-exclamation">
    Fini failed while creating the record in storage.
  </Accordion>
</AccordionGroup>
