> For the complete documentation index, see [llms.txt](https://docs.justpush.io/introduction/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.justpush.io/introduction/objects/messages/title.md).

# Title

Think of the `title` as your message’s opening act. It sets the stage and gives context before the recipient even glances at the actual message. If you leave it out, don’t worry—JustPush.io will automatically use the app’s name instead (but come on, you can do better than that).

A great title is short, punchy, and informative. Something like:

✅ `🚨 Server Down! Panic Mode Activated`\
✅ `🔥 New Order #12345 – Time to Celebrate`\
✅ `🤖 Your Automation Just Did a Thing`

Avoid titles like:

❌ `"Message"` (Wow, inspiring.)\
❌ `"Notification"` (We gathered that already.)\
❌ `"Important Update"` (Important to *who*?)

#### Requirements

<table><thead><tr><th>Attribute</th><th width="121">Data Type</th><th>Validation Criteria</th></tr></thead><tbody><tr><td><code>title</code></td><td><code>string</code></td><td><code>max 255 characters</code></td></tr></tbody></table>

{% hint style="info" %}
If a push message includes only a title, the body will default to "*Empty.*"
{% endhint %}

#### Example Request

```bash
curl -X "POST" "https://api.justpush.io/messages" \
     -H 'Content-Type: text/plain; charset=utf-8' \
     -d $'{
  "user": "<< USER KEY >>",
  "title": "A simple title"
}'

```

#### Mobile App

A message with only a title will look like this.

<figure><img src="/files/yAthI294PaGlzV0XaUot" alt=""><figcaption><p>A simple message with a title</p></figcaption></figure>

***

#### Frequently Asked Questions

<details>

<summary>Is the <code>title</code> required?</summary>

Uhm, yes, but this is also the only piece that we made required. We love to keep things simple.

</details>

<details>

<summary>How long can the <code>title</code> be?</summary>

At maximum it can be `255` characters. But honestly, if you’re writing a novel in the title, you might need to rethink your approach.

</details>

<details>

<summary>Can I use emojis?</summary>

Absolutely! Emojis make everything better. Just don’t overdo it. `"🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥"` might grab attention, but it won’t make you any friends.

</details>

<details>

<summary>What if I forget to set a title?</summary>

Nothing breaks, but your message might lack context. Your future self might not appreciate the mystery.

</details>

***

## 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://docs.justpush.io/introduction/objects/messages/title.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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.justpush.io/introduction/objects/messages/title.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
