---
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`

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/fastapi.md) · [All operations](https://skmtc.dev/brandbooster/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brandbooster/fastapi/revisions/ff7f2b621b41/schema)
