# Obtener acción

**GET**\
`https://api.anunzi.net/v2/actions/{action_id}`

Retrieve details of a specific custom action in your Anunzi environment.

***

#### **Path Parameters**

| Parameter   | Type   | Required | Description                              |
| ----------- | ------ | -------- | ---------------------------------------- |
| `action_id` | string | Yes      | The unique ID of the action to retrieve. |

***

#### **Example Request (cURL)**

```bash
curl --request GET \
     --url https://api.anunzi.net/v2/actions/213156153x1586161 \
     --header 'accept: application/json' \
     --header 'Authorization: Bearer API_KEY'
```

***

#### **Example Response (200 OK)**

```json
{
  "status": "ok",
  "response": {
    "actions": [
      {
        "action_id": "1725911493083x249395485329627420",
        "action_type": "SEND_SMS",
        "name": "send_sms",
        "description": "If the user has confirmed interest in scheduling a demo meeting",
        "parameters_hard_coded": {
          "sms_message_text": "Hello!"
        }
      }
    ]
  }
}
```

***

#### **Response Fields**

| Field                   | Type   | Description                                                              |
| ----------------------- | ------ | ------------------------------------------------------------------------ |
| `action_id`             | string | Unique identifier for the action.                                        |
| `action_type`           | string | Type of action (e.g., `SEND_SMS`, `LIVE_TRANSFER`, `REAL_TIME_BOOKING`). |
| `name`                  | string | Name of the action.                                                      |
| `description`           | string | Description of what the action is expected to do.                        |
| `parameters_hard_coded` | object | Key-value pairs containing predefined parameters for the action.         |

***

#### **Status Codes**

| Code | Description                                 |
| ---- | ------------------------------------------- |
| 200  | Action details retrieved successfully.      |
| 400  | Bad Request. Invalid or missing parameters. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.anunzi.net/api-widgets/trabajar-con-la-api-de-llamadas/actions/get-action.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
