> For the complete documentation index, see [llms.txt](https://linkie.bio/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://linkie.bio/docs/api-reference/posts.md).

# Posts

Manage post items attached to a Linkie profile.

Use these endpoints to sync “post items” into a Linkie profile. A post item typically represents a piece of content (for example an Instagram photo post or an X/Twitter status) that you want Linkie to display or track as part of a profile’s content.

### Requirements

**Authentication**: Bearer API key

**Headers**:

* ```http
  Authorization: Bearer YOUR_API_KEY
  ```

### Endpoint

#### List post items for a profile

List post items for a profile.

```http
POST /api/v1/profiles
```

## GET /api/v1/profiles/{profileId}/posts

> List post items for a profile

```json
{"openapi":"3.0.0","info":{"title":"Linkie Public API","version":"1.0"},"servers":[{"url":"https://app.linkie.bio","description":"Production"}],"security":[{"ApiKey":[]}],"components":{"securitySchemes":{"ApiKey":{"scheme":"bearer","bearerFormat":"api-key","type":"http"}},"schemas":{"PostsListResponse":{"type":"object","required":["status","statusCode","message","data","timestamp"],"properties":{"status":{"type":"boolean"},"statusCode":{"type":"integer"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PostItem"}},"timestamp":{"type":"string"}}},"PostItem":{"type":"object","required":["_id","url","thumbnail_url","provider","account_name","text","post_type"],"properties":{"_id":{"type":"string"},"url":{"type":"string"},"thumbnail_url":{"type":"string"},"provider":{"type":"string"},"account_name":{"type":"string"},"text":{"type":"string"},"post_type":{"type":"string"},"options":{"nullable":true,"type":"array","items":{"type":"string"}}}},"ApiErrorResponse":{"type":"object","required":["status","statusCode","message","timestamp"],"properties":{"status":{"type":"boolean"},"statusCode":{"type":"integer"},"message":{"type":"string"},"error":{"type":"string"},"timestamp":{"type":"string"}}}},"responses":{"Unauthorized":{"description":"Unauthorized. Missing, invalid, or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"paths":{"/api/v1/profiles/{profileId}/posts":{"get":{"operationId":"PublicPostsController_list","summary":"List post items for a profile","parameters":[{"name":"profileId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostsListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"tags":["Posts"]}}}}
```

#### Add post items to a profile

Add a post to your profile, singular or in bulk.

```http
POST /api/v1/profiles/:profileId/posts
```

## POST /api/v1/profiles/{profileId}/posts

> Add post items to a profile

```json
{"openapi":"3.0.0","info":{"title":"Linkie Public API","version":"1.0"},"servers":[{"url":"https://app.linkie.bio","description":"Production"}],"security":[{"ApiKey":[]}],"components":{"securitySchemes":{"ApiKey":{"scheme":"bearer","bearerFormat":"api-key","type":"http"}},"schemas":{"AddPostsItemDto":{"type":"object","properties":{"url":{"type":"string","description":"Permalink to the original post."},"thumbnail_url":{"type":"string","description":"Thumbnail image URL. Empty for status updates from Publer."},"provider":{"type":"string","enum":["facebook","instagram","twitter","linkedin","pinterest","youtube","tiktok","google","wordpress","telegram","mastodon","threads","bluesky"],"description":"Social network the post originates from."},"account_name":{"type":"string","description":"Display name of the social account that authored the post."},"post_type":{"type":"string","enum":["text","link","photo","gif","video","article","carousel","poll"],"description":"Type of the post (status, photo, video, ...)."},"text":{"type":"string","description":"Post text / caption. Required when post_type is \"text\" or \"poll\"; optional otherwise."},"options":{"description":"Choices for poll posts. Only set when post_type is \"poll\".","type":"array","items":{"type":"string"}}},"required":["url","provider","account_name","post_type"]},"PostCreateResponse":{"type":"object","required":["status","statusCode","message","data","timestamp"],"properties":{"status":{"type":"boolean"},"statusCode":{"type":"integer"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PostItem"}},"timestamp":{"type":"string"}}},"PostItem":{"type":"object","required":["_id","url","thumbnail_url","provider","account_name","text","post_type"],"properties":{"_id":{"type":"string"},"url":{"type":"string"},"thumbnail_url":{"type":"string"},"provider":{"type":"string"},"account_name":{"type":"string"},"text":{"type":"string"},"post_type":{"type":"string"},"options":{"nullable":true,"type":"array","items":{"type":"string"}}}},"ApiErrorResponse":{"type":"object","required":["status","statusCode","message","timestamp"],"properties":{"status":{"type":"boolean"},"statusCode":{"type":"integer"},"message":{"type":"string"},"error":{"type":"string"},"timestamp":{"type":"string"}}}},"responses":{"Unauthorized":{"description":"Unauthorized. Missing, invalid, or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"paths":{"/api/v1/profiles/{profileId}/posts":{"post":{"operationId":"PublicPostsController_add","summary":"Add post items to a profile","parameters":[{"name":"profileId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AddPostsItemDto"}}}}},"responses":{"201":{"description":"Resource created successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostCreateResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"tags":["Posts"]}}}}
```

#### Update a post item

Updates a single post item attached to a Linkie profile.

```http
PATCH /api/v1/profiles/:profileId/posts/:postsItemId
```

## PATCH /api/v1/profiles/{profileId}/posts/{postsItemId}

> Update a post item

```json
{"openapi":"3.0.0","info":{"title":"Linkie Public API","version":"1.0"},"servers":[{"url":"https://app.linkie.bio","description":"Production"}],"security":[{"ApiKey":[]}],"components":{"securitySchemes":{"ApiKey":{"scheme":"bearer","bearerFormat":"api-key","type":"http"}},"schemas":{"UpdatePostsItemDto":{"type":"object","properties":{"url":{"type":"string","description":"New permalink to the original post."}},"required":["url"]},"PostUpdateResponse":{"type":"object","required":["status","statusCode","message","data","timestamp"],"properties":{"status":{"type":"boolean"},"statusCode":{"type":"integer"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/PostItem"},"timestamp":{"type":"string"}}},"PostItem":{"type":"object","required":["_id","url","thumbnail_url","provider","account_name","text","post_type"],"properties":{"_id":{"type":"string"},"url":{"type":"string"},"thumbnail_url":{"type":"string"},"provider":{"type":"string"},"account_name":{"type":"string"},"text":{"type":"string"},"post_type":{"type":"string"},"options":{"nullable":true,"type":"array","items":{"type":"string"}}}},"ApiErrorResponse":{"type":"object","required":["status","statusCode","message","timestamp"],"properties":{"status":{"type":"boolean"},"statusCode":{"type":"integer"},"message":{"type":"string"},"error":{"type":"string"},"timestamp":{"type":"string"}}}},"responses":{"Unauthorized":{"description":"Unauthorized. Missing, invalid, or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"paths":{"/api/v1/profiles/{profileId}/posts/{postsItemId}":{"patch":{"operationId":"PublicPostsController_update","summary":"Update a post item","parameters":[{"name":"profileId","required":true,"in":"path","schema":{"type":"string"}},{"name":"postsItemId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePostsItemDto"}}}},"responses":{"200":{"description":"Successful operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostUpdateResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}},"tags":["Posts"]}}}}
```

#### Remove a post item from a profile

Remove a specific post from a profile, one at a time.

```http
DELETE /api/v1/profiles/:profileId/posts/:postsItemId
```

## DELETE /api/v1/profiles/{profileId}/posts/{postsItemId}

> Remove a post item from a profile

```json
{"openapi":"3.0.0","info":{"title":"Linkie Public API","version":"1.0"},"servers":[{"url":"https://app.linkie.bio","description":"Production"}],"security":[{"ApiKey":[]}],"components":{"securitySchemes":{"ApiKey":{"scheme":"bearer","bearerFormat":"api-key","type":"http"}},"responses":{"Unauthorized":{"description":"Unauthorized. Missing, invalid, or expired API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}},"schemas":{"ApiErrorResponse":{"type":"object","required":["status","statusCode","message","timestamp"],"properties":{"status":{"type":"boolean"},"statusCode":{"type":"integer"},"message":{"type":"string"},"error":{"type":"string"},"timestamp":{"type":"string"}}}}},"paths":{"/api/v1/profiles/{profileId}/posts/{postsItemId}":{"delete":{"operationId":"PublicPostsController_remove","summary":"Remove a post item from a profile","parameters":[{"name":"profileId","required":true,"in":"path","schema":{"type":"string"}},{"name":"postsItemId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Post item removed."},"401":{"$ref":"#/components/responses/Unauthorized"}},"tags":["Posts"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://linkie.bio/docs/api-reference/posts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
