# Content Creation

The **Post Generation API** allows you to create AI-powered social media content at scale. With just a prompt, you can generate:

* Captions tailored to each platform’s style.
* Relevant hashtags optimized for reach and engagement.
* Complete post drafts ready to be published.

This API is ideal for:

* Automating social media content creation.
* Supporting marketing teams, agencies, and SaaS products.
* Personalizing posts for different tones, languages, and audiences.

***

### Authentication

All requests to the Post Generation API require a **Bearer token** passed in the `Authorization` header:

```http
Authorization: Bearer <your_api_token>
```

The token must have the following permission:

* **`social-post-generation`** – required to generate, regenerate, list, or delete social media post content.

If the token is missing, expired, or does not include the `social-post-generation` permission, the API will return a `401 Unauthorized` error.


---

# 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.marketingblocks.ai/agentic-ai-docs/api-reference/social-growth-engine/content-creation.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.
