# Goals

### /create\_goal/

## Creates a new goal.&#x20;

<mark style="color:green;">`POST`</mark>&#x20;

#### Query Parameters

| Name                                          | Type   | Description                                                                                                                                                                                               |
| --------------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| title<mark style="color:red;">\*</mark>       | String | Specify the title for the goal. It is used internally by your team only. It will be visible in your dashboard too.                                                                                        |
| description<mark style="color:red;">\*</mark> | String | <p>Free form text that tells MAAX AI what it should achieve. Common uses cases are:<br><br>1. convince the prospect to book a meeting. 2. convince the prospect to purchase the product. </p><p></p>      |
| link                                          | String | <p>A link where MAAX AI should send people to a desired action. For example, it can be a link to your calendar, or a checkout page. <br><br>While not required we highly recommend you include this. </p> |

#### Headers

| Name        | Type   | Description    |
| ----------- | ------ | -------------- |
| 2hd-api-key | String | YOUR\_API\_KEY |

{% tabs %}
{% tab title="200: OK {   "id": NEW\_GOAL\_ID  }" %}

{% endtab %}
{% endtabs %}


---

# 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://documentation.maax.ai/main/technical-guides/apis/v1/goals.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.
