# Get CSV Post

GET https://services.leadconnectorhq.com/social-media-posting/{locationId}/csv/{id}

Get details of a specific CSV import including its posts

## Authentication

Send `Authorization: Bearer <token>` using:

- **Sub-Account token: OAuth access token or Private Integration Token.** Scopes: `socialplanner/csv.readonly`

## Parameters

### Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Version` | string | Yes | API Version |

### Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `locationId` | string | Yes | Location Id |
| `id` | string | Yes | CSV Id |

### Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `skip` | string | No | Number of records to skip |
| `limit` | string | No | Maximum number of records to return |

## OpenAPI Specification

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "LeadConnector API",
    "version": "v3"
  },
  "servers": [
    {
      "url": "https://services.leadconnectorhq.com"
    }
  ],
  "paths": {
    "/social-media-posting/{locationId}/csv/{id}": {
      "get": {
        "summary": "Get CSV Post",
        "operationId": "getCsvPost",
        "description": "Get details of a specific CSV import including its posts",
        "parameters": [
          {
            "name": "Version",
            "in": "header",
            "description": "API Version",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "v3"
              ]
            }
          },
          {
            "name": "locationId",
            "required": true,
            "in": "path",
            "description": "Location Id",
            "schema": {
              "example": "ve9EPM428h8vShlRW1KT",
              "type": "string"
            }
          },
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "CSV Id",
            "schema": {
              "example": "65f92e55cc884f0d0845e447",
              "type": "string"
            }
          },
          {
            "name": "skip",
            "required": false,
            "in": "query",
            "description": "Number of records to skip",
            "schema": {
              "example": "0",
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Maximum number of records to return",
            "schema": {
              "example": "10",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCsvPostResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestDTO"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedDTO"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "Location-Access": [
              "socialplanner/csv.readonly"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account.",
        "type": "http"
      },
      "Agency-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.",
        "type": "http"
      },
      "Agency-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency.",
        "type": "http"
      }
    },
    "schemas": {
      "GetCsvPostResponseDTO": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Success or Failure",
            "example": true
          },
          "statusCode": {
            "type": "number",
            "description": "Status Code",
            "example": 200
          },
          "message": {
            "type": "string",
            "description": "Message",
            "example": "Fetched CSV Post"
          },
          "results": {
            "description": "Requested Results",
            "example": {
              "csv": {
                "id": "ve9EPM428h8vShlRW1KT",
                "locationId": "iVrVJ2uoXNF0wzcBzgl5",
                "fileName": "sample.csv",
                "status": "completed",
                "count": 5
              },
              "count": 6,
              "posts": [
                {
                  "accountIds": [
                    "aF3KhyL8JIuBwzK3m7Ly_iVrVJ2uoXNF0wzcBzgl5_12554616564525983496"
                  ],
                  "summary": "First post",
                  "type": "post"
                }
              ]
            },
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "csv": {
                    "description": "CSV Data",
                    "example": {
                      "id": "ve9EPM428h8vShlRW1KT",
                      "locationId": "iVrVJ2uoXNF0wzcBzgl5",
                      "fileName": "sample.csv",
                      "status": "completed",
                      "count": 5
                    },
                    "allOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "CSV Id",
                            "example": "ve9EPM428h8vShlRW1KT"
                          },
                          "locationId": {
                            "type": "string",
                            "description": "Location Id",
                            "example": "iVrVJ2uoXNF0wzcBzgl5"
                          },
                          "fileName": {
                            "type": "string",
                            "description": "File Name",
                            "example": "sample.csv"
                          },
                          "accountIds": {
                            "description": "Account Ids",
                            "example": [
                              "aF3KhyL8JIuBwzK3m7Ly_iVrVJ2uoXNF0wzcBzgl5_12554616564525983496"
                            ],
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "file": {
                            "type": "string",
                            "description": "File path",
                            "example": "omaDY3RbWtTP511e/social-import/d23d68c2-82c0-1db6e2.csv"
                          },
                          "status": {
                            "type": "string",
                            "description": "CSV import status",
                            "example": "completed",
                            "enum": [
                              "pending",
                              "in_progress",
                              "completed",
                              "failed",
                              "in_review",
                              "importing",
                              "deleted"
                            ]
                          },
                          "count": {
                            "type": "number",
                            "description": "Posts count",
                            "example": 5
                          },
                          "createdBy": {
                            "type": "string",
                            "description": "Created By Id",
                            "example": "SDsdfdf45Dgs4w3ssss"
                          },
                          "traceId": {
                            "type": "string",
                            "description": "Trace ID for debugging",
                            "example": "FSeSDsdfdf45Dgs4w3ssss"
                          },
                          "originId": {
                            "type": "string",
                            "description": "Origin Id",
                            "example": "FSeSDsdfdf45Dgs4w3ssss"
                          },
                          "approver": {
                            "type": "string",
                            "description": "Approver Id",
                            "example": "FSeSDsdfdf45Dgs4w3ssss"
                          },
                          "createdAt": {
                            "format": "date-time",
                            "type": "string",
                            "description": "Date Created",
                            "example": "2023-08-02T00:00:00.000Z"
                          },
                          "csvFileType": {
                            "type": "string",
                            "description": "CSV file type",
                            "example": "basic",
                            "enum": [
                              "basic",
                              "advance"
                            ]
                          },
                          "mediaOptimization": {
                            "type": "boolean",
                            "description": "Media optimization flag",
                            "example": true
                          },
                          "applyWatermark": {
                            "type": "boolean",
                            "description": "Apply watermark flag",
                            "example": false
                          },
                          "channel": {
                            "type": "string",
                            "description": "Channel",
                            "example": "oauth"
                          },
                          "updatedAt": {
                            "format": "date-time",
                            "type": "string",
                            "description": "Date Updated",
                            "example": "2023-08-02T00:00:00.000Z"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "title": "CSVImportSchema"
                      }
                    ]
                  },
                  "count": {
                    "type": "number",
                    "description": "Total count of posts in CSV",
                    "example": 6
                  },
                  "posts": {
                    "description": "CSV Posts",
                    "example": [
                      {
                        "accountIds": [
                          "aF3KhyL8JIuBwzK3m7Ly_iVrVJ2uoXNF0wzcBzgl5_12554616564525983496"
                        ],
                        "summary": "First post",
                        "type": "post"
                      }
                    ],
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "accountIds": {
                          "description": "Account Ids",
                          "example": [
                            "aF3KhyL8JIuBwzK3m7Ly_iVrVJ2uoXNF0wzcBzgl5_12554616564525983496"
                          ],
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "link": {
                          "description": "OG Tag",
                          "example": {
                            "url": "https://example.com/article",
                            "ogTitle": "The Impact of Social Media",
                            "ogDescription": "Social media as we know it has barely reached its 20th birthday"
                          },
                          "allOf": [
                            {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "description": "Tag url",
                                  "example": "https://knowledge.wharton.upenn.edu/article/impact-of-social-media/"
                                },
                                "ogDescription": {
                                  "type": "string",
                                  "description": "Tag description",
                                  "example": "Social media as we know it has barely"
                                },
                                "ogImage": {
                                  "description": "OG Image data",
                                  "example": {
                                    "url": "https://knowledge.wharton.upenn.edu/wp-content/uploads/2019/07/072619_socialmedia_phonelikes-600x440.jpg"
                                  },
                                  "allOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "url": {
                                          "type": "string",
                                          "description": "Image url",
                                          "example": "https://knowledge.wharton.upenn.edu/wp-content/uploads/2019/07/072619_socialmedia_phonelikes-600x440.jpg"
                                        },
                                        "width": {
                                          "type": "number",
                                          "description": "Image width",
                                          "example": 400
                                        },
                                        "height": {
                                          "type": "number",
                                          "description": "Image height",
                                          "example": 400
                                        },
                                        "type": {
                                          "type": "string",
                                          "description": "Image Type",
                                          "example": "image/jpg"
                                        }
                                      },
                                      "title": "OgImageSchema"
                                    }
                                  ]
                                },
                                "ogTitle": {
                                  "type": "string",
                                  "description": "Tag Title",
                                  "example": "The Impact of Social Media: Is it Irreplaceable?"
                                },
                                "ogUrl": {
                                  "type": "string",
                                  "description": "Tag Url",
                                  "example": "https://knowledge.wharton.upenn.edu/article/impact-of-social-media/"
                                },
                                "ogSiteName": {
                                  "type": "string",
                                  "description": "Site Name",
                                  "example": "Knowledge at Wharton"
                                },
                                "error": {
                                  "type": "string",
                                  "description": "Og Tag Error",
                                  "example": "InvalidLink"
                                }
                              },
                              "title": "IOgTagsSchema"
                            }
                          ]
                        },
                        "medias": {
                          "description": "Post Media List",
                          "example": [
                            {
                              "url": "https://storage.googleapis.com/storage-test/omaDY3RbWtTP511e808O/media/38e53059-b92706571605.png",
                              "type": "image/webp",
                              "size": 18362
                            }
                          ],
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "url": {
                                "type": "string",
                                "description": "Media Url",
                                "example": "https://storage.googleapis.com/storage-test/omaDY3RbWtTP511e808O/media/38e53059-b92706571605.png"
                              },
                              "type": {
                                "type": "string",
                                "description": "Media Type",
                                "example": "image/webp"
                              },
                              "size": {
                                "type": "number",
                                "description": "Media Size",
                                "example": 18362
                              },
                              "width": {
                                "type": "number",
                                "description": "Media Width",
                                "example": 500
                              },
                              "height": {
                                "type": "number",
                                "description": "Media Height",
                                "example": 500
                              },
                              "aspectRatio": {
                                "type": "number",
                                "description": "Media Aspect Ratio",
                                "example": 1.5
                              },
                              "duration": {
                                "type": "number",
                                "description": "Media Aspect Ratio",
                                "example": 60
                              },
                              "format": {
                                "type": "string",
                                "description": "Media format",
                                "example": "jpg"
                              },
                              "videoCodecName": {
                                "type": "string",
                                "description": "Video Codec",
                                "example": "h264"
                              },
                              "frameRate": {
                                "type": "number",
                                "description": "Video Frame Rate",
                                "example": 21
                              },
                              "audioCodecName": {
                                "type": "string",
                                "description": "Audio Codec",
                                "example": "aac"
                              },
                              "audioChannels": {
                                "type": "number",
                                "description": "Audio Channel",
                                "example": 1
                              },
                              "displayAspectRatio": {
                                "type": "string",
                                "description": "Display Aspect Ratio",
                                "example": "250 : 167"
                              },
                              "rotation": {
                                "type": "string",
                                "description": "Rotation",
                                "example": "-90"
                              },
                              "frames": {
                                "description": "List of frames",
                                "example": [
                                  "https://storage.googleapis.com/storage-test/frame1.jpg",
                                  "https://storage.googleapis.com/storage-test/frame2.jpg"
                                ],
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "selectedPoster": {
                                "type": "number",
                                "description": "Selected Poster",
                                "example": 0
                              },
                              "error": {
                                "type": "string",
                                "description": "Error",
                                "example": "Image is larger than 10MB"
                              },
                              "altText": {
                                "type": "string",
                                "description": "Alt text for accessibility. Supported on Instagram (1000), Threads (1000), Pinterest (500), Bluesky (2000), LinkedIn (4086). Limit varies by platform.",
                                "example": "A sunset over the ocean with silhouetted palm trees"
                              },
                              "instagramError": {
                                "type": "string",
                                "description": "Instagram media error. It can be one of the following errors: imageSize, imageType, videoType, videoDuration, videoSize, videoAspectRatio, videoWidthHeight, audioCodec, audioCodecChannels, videoCodec, videoFrameRate",
                                "example": "imageSize"
                              },
                              "gmbError": {
                                "type": "string",
                                "description": "GMB media error. It can be one of the following errors: imageSize, imageDimension, imageType",
                                "example": "imageDimension"
                              },
                              "facebookError": {
                                "type": "string",
                                "description": "Facebook media error. It can be one of the following errors: imageSize, imageType, videoDuration, videoSize",
                                "example": "videoDuration"
                              },
                              "linkedinError": {
                                "type": "string",
                                "description": "LinkedIn media error. It can be one of the following errors: imageSize, imageType, videoType, videoDuration, videoSize",
                                "example": "imageType"
                              },
                              "tiktokError": {
                                "type": "string",
                                "description": "Tiktok media error. It can be one of the following errors: videoType, videoDuration, videoSize, videoWidthHeight, videoCodec, videoFrameRate",
                                "example": "videoFrameRate"
                              },
                              "tiktokBusinessError": {
                                "type": "string",
                                "description": "Tikok Business media error. It can be one of the following errors: videoType, videoDuration, videoSize, videoWidthHeight, videoCodec, videoFrameRate",
                                "example": "videoType"
                              },
                              "invalidError": {
                                "type": "string",
                                "description": "Media error. It can be one of the following values: imageSize, imageWidth",
                                "example": "imageSize"
                              },
                              "pinterestError": {
                                "type": "string",
                                "description": "Pinterest media error. It can be one of the following errors: imageType, imageSize, videoType, videoDuration, videoSize, videoCodec, videoAspectRatio",
                                "example": "videoFrameRate"
                              },
                              "communityError": {
                                "type": "string",
                                "description": "Community media error. It can be one of the following errors: imageType, imageSize, videoType, videoDuration, videoSize",
                                "example": "imageSize"
                              }
                            },
                            "title": "CSVMediaResponseSchema"
                          }
                        },
                        "scheduleDate": {
                          "type": "string",
                          "description": "Schedule date for the post in ISO format",
                          "example": "2022-11-23T05:53:00.000Z"
                        },
                        "summary": {
                          "type": "string",
                          "description": "Post content/summary",
                          "example": "First post"
                        },
                        "followUpComment": {
                          "type": "string",
                          "description": "Follow-up comment to be posted immediately after the main post is published.\n\n**Supported Platforms:** Facebook, Instagram, LinkedIn, YouTube, TikTok\n\n**NOT Supported:** Google My Business (GMB), Pinterest\n\n**Use Case:** Great for adding hashtags, additional context, or engagement prompts without cluttering the main post.\n\n- Like `summary`, the follow-up comment is trimmed to the **strictest** limit among the post's platforms, not to each platform's own limit — a post that includes Bluesky (300) trims the comment to 300 everywhere. Send one request per platform to keep the full comment on each.\n- TikTok: the comment is published once the video becomes publicly viewable on TikTok (typically 1-3 minutes after the post goes out), not immediately. Max 1,200 characters.\n- TikTok: only public videos are supported. Set `privacyLevel` to `PUBLIC_TO_EVERYONE`; friends-only and private videos are not supported.\n\n**Reference:** [Platform Limitations Guide](https://help.leadconnectorhq.com/support/solutions/articles/48001240003-social-planner-image-video-content-and-api-limitations)",
                          "example": "Initial Comment"
                        },
                        "type": {
                          "type": "string",
                          "description": "Post type - post, story, or reel",
                          "enum": [
                            "post",
                            "story",
                            "reel",
                            "short"
                          ],
                          "example": "post"
                        },
                        "tiktokPostDetails": {
                          "description": "Tiktok Post Details",
                          "example": {
                            "privacyLevel": "PUBLIC_TO_EVERYONE",
                            "enableComment": true,
                            "enableDuet": false,
                            "enableStitch": false
                          },
                          "allOf": [
                            {
                              "type": "object",
                              "properties": {
                                "privacyLevel": {
                                  "type": "string",
                                  "description": "Privacy level controlling who can view the video.\n\n**Available Values:**\n- `PUBLIC_TO_EVERYONE` - Anyone can view (default)\n- `MUTUAL_FOLLOW_FRIENDS` - Only mutual followers can view\n- `SELF_ONLY` - Only you can view (private)\n\n**Note:** If set to `SELF_ONLY`, `videoDisclosure` must be `false`.",
                                  "example": "PUBLIC_TO_EVERYONE",
                                  "enum": [
                                    "PUBLIC_TO_EVERYONE",
                                    "MUTUAL_FOLLOW_FRIENDS",
                                    "SELF_ONLY"
                                  ]
                                },
                                "promoteOtherBrand": {
                                  "type": "boolean",
                                  "description": "Indicates if the video promotes a third-party brand or product.\n\n**Required:** Must be `true` if `videoDisclosure` is enabled and you're promoting another brand.",
                                  "example": false
                                },
                                "enableComment": {
                                  "type": "boolean",
                                  "description": "Allow users to comment on the video. Default is determined by account settings.",
                                  "example": true
                                },
                                "enableDuet": {
                                  "type": "boolean",
                                  "description": "Allow users to create Duet videos with your content.\n\n**Duet:** Side-by-side video featuring your content and the creator's reaction/addition.",
                                  "example": true
                                },
                                "enableStitch": {
                                  "type": "boolean",
                                  "description": "Allow users to create Stitch videos with your content.\n\n**Stitch:** Clips up to 5 seconds of your video that creators can use in their own videos.",
                                  "example": true
                                },
                                "videoDisclosure": {
                                  "type": "boolean",
                                  "description": "Enable branded content disclosure. Required when video is promotional content.\n\n**Validations:**\n- Cannot be `true` if `privacyLevel` is `SELF_ONLY`\n- If enabled, at least one of `promoteYourBrand` or `promoteOtherBrand` must be `true`",
                                  "example": false
                                },
                                "promoteYourBrand": {
                                  "type": "boolean",
                                  "description": "Indicates if the video promotes your own brand or product.\n\n**Required:** Must be `true` if `videoDisclosure` is enabled and you're promoting your own brand.",
                                  "example": false
                                }
                              },
                              "title": "TiktokPostSchema"
                            }
                          ]
                        },
                        "gmbPostDetails": {
                          "description": "GMB Post Details",
                          "example": {
                            "topicType": "STANDARD"
                          },
                          "allOf": [
                            {
                              "type": "object",
                              "properties": {
                                "gmbEventType": {
                                  "type": "string",
                                  "description": "Google My Business post type.\n\n**Available Types:**\n- `STANDARD` - Regular update post (What's New)\n- `EVENT` - Event announcement with dates and title\n- `OFFER` - Promotional offer with coupon and redemption details\n\n**Required fields by type:**\n- STANDARD: None additional\n- EVENT: `title`, `startDate`, `endDate`\n- OFFER: `offerTitle`, `startDate`, `endDate`, `termsConditions`, `couponCode`, `redeemOnlineUrl`",
                                  "example": "STANDARD",
                                  "enum": [
                                    "STANDARD",
                                    "EVENT",
                                    "OFFER"
                                  ]
                                },
                                "title": {
                                  "type": "string",
                                  "description": "Event title. Required when `gmbEventType` is `EVENT`.\n\n**Max length:** 58 characters",
                                  "example": "Summer Sale Event 2024"
                                },
                                "offerTitle": {
                                  "type": "string",
                                  "description": "Offer title. Required when `gmbEventType` is `OFFER`.",
                                  "example": "50% Off All Products"
                                },
                                "startDate": {
                                  "description": "Start date and time for EVENT or OFFER posts.\n\n**Required:** When `gmbEventType` is `EVENT` or `OFFER`.\n\n**Structure:**\n- `startDate`: { year, month, day }\n- `startTime`: { hours, minutes, seconds }",
                                  "example": {
                                    "startDate": {
                                      "year": 2024,
                                      "month": 1,
                                      "day": 15
                                    },
                                    "startTime": {
                                      "hours": 10,
                                      "minutes": 0,
                                      "seconds": 0
                                    }
                                  },
                                  "allOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "startDate": {
                                          "description": "Start Date",
                                          "example": {
                                            "year": 2024,
                                            "month": 1,
                                            "day": 15
                                          },
                                          "allOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "year": {
                                                  "type": "number",
                                                  "description": "Year component of the date",
                                                  "example": 2022
                                                },
                                                "month": {
                                                  "type": "number",
                                                  "description": "Month component of the date (1-12)",
                                                  "example": 1
                                                },
                                                "day": {
                                                  "type": "number",
                                                  "description": "Day component of the date (1-31)",
                                                  "example": 1
                                                }
                                              },
                                              "required": [
                                                "year",
                                                "month",
                                                "day"
                                              ],
                                              "title": "DateSchema"
                                            }
                                          ]
                                        },
                                        "startTime": {
                                          "description": "Start Time",
                                          "example": {
                                            "hours": 10,
                                            "minutes": 30,
                                            "seconds": 0
                                          },
                                          "allOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "hours": {
                                                  "type": "number",
                                                  "description": "Hour component of the time (0-23)",
                                                  "example": 23
                                                },
                                                "minutes": {
                                                  "type": "number",
                                                  "description": "Minute component of the time (0-59)",
                                                  "example": 56
                                                },
                                                "seconds": {
                                                  "type": "number",
                                                  "description": "Second component of the time (0-59)",
                                                  "example": 34
                                                }
                                              },
                                              "required": [
                                                "hours",
                                                "minutes",
                                                "seconds"
                                              ],
                                              "title": "TimeSchema"
                                            }
                                          ]
                                        }
                                      },
                                      "title": "StartDateSchema"
                                    }
                                  ]
                                },
                                "endDate": {
                                  "description": "End date and time for EVENT or OFFER posts.\n\n**Required:** When `gmbEventType` is `EVENT` or `OFFER`.\n**Validation:** Must be after `startDate`.\n\n**Structure:**\n- `endDate`: { year, month, day }\n- `endTime`: { hours, minutes, seconds }",
                                  "example": {
                                    "endDate": {
                                      "year": 2024,
                                      "month": 1,
                                      "day": 20
                                    },
                                    "endTime": {
                                      "hours": 18,
                                      "minutes": 0,
                                      "seconds": 0
                                    }
                                  },
                                  "allOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "endDate": {
                                          "description": "End Date",
                                          "example": {
                                            "year": 2024,
                                            "month": 1,
                                            "day": 20
                                          },
                                          "allOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "year": {
                                                  "type": "number",
                                                  "description": "Year component of the date",
                                                  "example": 2022
                                                },
                                                "month": {
                                                  "type": "number",
                                                  "description": "Month component of the date (1-12)",
                                                  "example": 1
                                                },
                                                "day": {
                                                  "type": "number",
                                                  "description": "Day component of the date (1-31)",
                                                  "example": 1
                                                }
                                              },
                                              "required": [
                                                "year",
                                                "month",
                                                "day"
                                              ],
                                              "title": "DateSchema"
                                            }
                                          ]
                                        },
                                        "endTime": {
                                          "description": "End Time",
                                          "example": {
                                            "hours": 18,
                                            "minutes": 0,
                                            "seconds": 0
                                          },
                                          "allOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "hours": {
                                                  "type": "number",
                                                  "description": "Hour component of the time (0-23)",
                                                  "example": 23
                                                },
                                                "minutes": {
                                                  "type": "number",
                                                  "description": "Minute component of the time (0-59)",
                                                  "example": 56
                                                },
                                                "seconds": {
                                                  "type": "number",
                                                  "description": "Second component of the time (0-59)",
                                                  "example": 34
                                                }
                                              },
                                              "required": [
                                                "hours",
                                                "minutes",
                                                "seconds"
                                              ],
                                              "title": "TimeSchema"
                                            }
                                          ]
                                        }
                                      },
                                      "title": "EndDateSchema"
                                    }
                                  ]
                                },
                                "termsConditions": {
                                  "type": "string",
                                  "description": "URL to terms and conditions page. Required for OFFER posts.",
                                  "example": "https://yoursite.com/terms-and-conditions"
                                },
                                "url": {
                                  "type": "string",
                                  "description": "Call-to-action URL. Required when `actionType` is set (except `none` and `call`).\n\n**Required for:** STANDARD and EVENT posts with actionType other than `none` or `call`.",
                                  "example": "https://yoursite.com/book-now"
                                },
                                "couponCode": {
                                  "type": "string",
                                  "description": "Promotional coupon code. Required for OFFER posts.",
                                  "example": "SAVE50"
                                },
                                "redeemOnlineUrl": {
                                  "type": "string",
                                  "description": "URL where customers can redeem the offer online. Required for OFFER posts.",
                                  "example": "https://yoursite.com/redeem-offer"
                                },
                                "actionType": {
                                  "type": "string",
                                  "description": "Call-to-action button type for the post.\n\n**Available Actions:**\n- `none` - No action button\n- `order` - Order online\n- `book` - Book appointment\n- `shop` - Shop now\n- `learn_more` - Learn more\n- `call` - Call now (no URL required)\n- `sign_up` - Sign up\n\n**Note:** All actions except `none` and `call` require a `url`.",
                                  "example": "book",
                                  "enum": [
                                    "none",
                                    "order",
                                    "book",
                                    "shop",
                                    "learn_more",
                                    "call",
                                    "sign_up"
                                  ]
                                }
                              },
                              "required": [
                                "gmbEventType"
                              ],
                              "title": "GMBPostSchema"
                            }
                          ]
                        },
                        "errorMessage": {
                          "type": "string",
                          "description": "Error Description",
                          "example": "Invalid media format"
                        },
                        "csvFileType": {
                          "type": "string",
                          "description": "CSV file type",
                          "example": "basic",
                          "enum": [
                            "basic",
                            "advance"
                          ]
                        },
                        "mediaOptimization": {
                          "type": "boolean",
                          "description": "Media optimization flag",
                          "example": true
                        },
                        "applyWatermark": {
                          "type": "boolean",
                          "description": "Apply watermark flag",
                          "example": false
                        },
                        "status": {
                          "type": "string",
                          "description": "Post status",
                          "example": "pending",
                          "enum": [
                            "pending",
                            "accepted",
                            "rejected",
                            "deleted"
                          ]
                        },
                        "updatedAt": {
                          "format": "date-time",
                          "type": "string",
                          "description": "Date Updated",
                          "example": "2023-08-02T00:00:00.000Z"
                        }
                      },
                      "title": "CSVPostSchema"
                    }
                  }
                },
                "title": "GetCsvPostResponseSchema"
              }
            ]
          }
        },
        "required": [
          "success",
          "statusCode",
          "message"
        ],
        "title": "GetCsvPostResponseDTO"
      },
      "BadRequestDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 400
          },
          "message": {
            "type": "string",
            "example": "Bad Request"
          }
        },
        "title": "BadRequestDTO"
      },
      "UnauthorizedDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 401
          },
          "message": {
            "type": "string",
            "example": "Invalid token: access token is invalid"
          },
          "error": {
            "type": "string",
            "example": "Unauthorized"
          }
        },
        "title": "UnauthorizedDTO"
      },
      "UnprocessableDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 422
          },
          "message": {
            "example": [
              "Unprocessable Entity"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "error": {
            "type": "string",
            "example": "Unprocessable Entity"
          }
        },
        "title": "UnprocessableDTO"
      }
    }
  }
}
```

## Code Examples

**cURL**

```bash
curl -L -X GET 'https://services.leadconnectorhq.com/social-media-posting/<locationId>/csv/<id>' \
  -H 'Authorization: Bearer <TOKEN>' \
  -H 'Version: v3'
```

**Node.js**

```javascript
const options = {
  method: 'GET',
  headers: {
    Authorization: 'Bearer <TOKEN>',
    Version: 'v3'
  }
};

try {
  const response = await fetch('https://services.leadconnectorhq.com/social-media-posting/<locationId>/csv/<id>', options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

**Python**

```python
import requests

url = "https://services.leadconnectorhq.com/social-media-posting/{locationId}/csv/{id}"

headers = {
    "Authorization": "Bearer <TOKEN>",
    "Version": "v3"
}

response = requests.get(url, headers=headers)
print(response.json())
```

**PHP**

```php
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://services.leadconnectorhq.com/social-media-posting/<locationId>/csv/<id>',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => [
    'Authorization: Bearer <TOKEN>',
    'Version: v3',
  ],
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
```

**Java**

```java
HttpResponse<String> response = Unirest
  .get("https://services.leadconnectorhq.com/social-media-posting/<locationId>/csv/<id>")
  .header("Authorization", "Bearer <TOKEN>")
  .header("Version", "v3")
  .asString();
```

**Go**

```go
package main

import (
  "fmt"
  "net/http"
  "io"
)

func main() {
  url := "https://services.leadconnectorhq.com/social-media-posting/<locationId>/csv/<id>"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "Bearer <TOKEN>")
  req.Header.Add("Version", "v3")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}
```

**Ruby**

```ruby
require 'uri'
require 'net/http'

url = URI("https://services.leadconnectorhq.com/social-media-posting/<locationId>/csv/<id>")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = "Bearer <TOKEN>"
request["Version"] = "v3"

response = http.request(request)
puts response.read_body
```

**PowerShell**

```powershell
$headers = @{
  "Authorization" = "Bearer <TOKEN>"
  "Version" = "v3"
}

$response = Invoke-RestMethod -Uri 'https://services.leadconnectorhq.com/social-media-posting/<locationId>/csv/<id>' -Method 'GET' -Headers $headers
$response | ConvertTo-Json
```
