posts

Fetch Creative Data Endpoint

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.

get/api/v1/share/fetch_creative_data

Query parameters

post_idstring required

The ID of the post to fetch creative data for.

The ID of the post to fetch creative data for.

Response

Successful Response

{"stackTrail":"paths:/api/v1/share/fetch_creative_data:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 2 revisions of this API.