---
title: "Fetch Creative Data Endpoint"
method: GET
path: "/api/v1/share/fetch_creative_data"
tags: ["posts"]
---

# Fetch Creative Data Endpoint

`GET /api/v1/share/fetch_creative_data`

## Request

- Base URL: `https://api.brandbooster.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.brandbooster.ai/api/v1/share/fetch_creative_data`
- Auth: HTTP bearer

Fetches creative data for a given post ID.

This endpoint retrieves creative data associated with a specific post ID.
It requires the user to be authenticated via a JWT token. The user's
information is extracted and can be utilized for authorization or logging.

Args:
    post_id (str): The ID of the post for which creative data is being fetched.
    user (Users): The authenticated user object, obtained through JWT authentication.
    db (Session): The database session, provided by the dependency injection system.

Returns:
    JSON response containing the creative data associated with the given post ID.

Raises:
    HTTPException: If the post ID is invalid or if any errors occur during the database query.

## Query parameters

- `post_id` string, required: The ID of the post to fetch creative data for.

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/brandbooster/apis/brandbooster-api.md) - [All operations](https://skmtc.dev/brandbooster/apis/brandbooster-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brandbooster/apis/brandbooster-api/revisions/02d28bde684c?raw)
