> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postsyncer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a contact

> One contact, with the team's notes, their lists and their comments on the workspace's posts.

> [!NOTE]
>
> Needs `contacts:read`, and a role in the workspace that can view contacts: only owners and managers can. See [Permissions](https://docs.postsyncer.com/essentials/authentication.md#permissions).

Gives the contact, with their lists and your team's notes, and `posts`: the workspace's posts they commented on, newest first, each with the start of its text and their comments on it (`post_comments`). It reads only what PostSyncer keeps.

## Errors

| Status | `error` | When | Retry? |
| - | - | - | - |
| 401 | | No API key, or not a valid one. | No: fix the key. |
| 403 | | The key lacks `contacts:read`, or its user is inactive. | No: grant it in Settings → API. |
| 403 | | Your role in the workspace isn't owner or manager. | No. |
| 403 | `plan_limit_reached` | The workspace owner is on Free (`limit: crm`). | After the owner upgrades. |
| 404 | | No contact with that id in the workspaces the key can reach. | No. |
| 429 | | More than 60 requests a minute. | Yes, after `Retry-After` seconds. |

## Related

* [List contacts](https://docs.postsyncer.com/api-reference/contacts/list.md): find a contact's id.
* [Update a contact](https://docs.postsyncer.com/api-reference/contacts/update.md): add a note.


## OpenAPI

````yaml GET /contacts/{id}
openapi: 3.0.3
info:
  title: PostSyncer API
  description: >-
    Post to 12 social networks from your code: posts, media, comments,
    analytics, webhooks and more.
  version: 1.0.0
servers:
  - url: https://postsyncer.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: The workspaces the key can reach.
  - name: Accounts
    description: Connected social accounts, links to connect more, and disconnecting them.
  - name: Posts
    description: Drafts, scheduled and published posts, approvals and a post's history.
  - name: Post settings
    description: A post's auto-plug, comment moderation and contact collection.
  - name: Media
    description: >-
      The media library: file uploads, URL imports, and reading videos and
      social posts' files.
  - name: Folders
    description: Folders that organise the media library.
  - name: Comments
    description: >-
      Comments on your posts: reading, replying, editing, hiding, deleting and
      syncing them.
  - name: Reviews
    description: Google Business Profile reviews and your replies to them.
  - name: Analytics
    description: Workspace, account and post performance.
  - name: Brand
    description: >-
      A workspace's brand: identity, voice, look, accounts, competitors,
      learnings and rules.
  - name: Labels
    description: Labels used to tag posts.
  - name: Campaigns
    description: Campaigns used to group posts.
  - name: Snippets
    description: Saved snippets and hashtag groups to drop into posts.
  - name: Webhooks
    description: Signed webhook endpoints that get your notification events.
  - name: Billing
    description: >-
      The owner's plan, invoices and the links that pay for, change or cancel
      it.
  - name: Team
    description: A workspace's teammates and invitations, and their roles.
  - name: Notifications
    description: >-
      Your bell and notification settings, and the workspace's Slack, Discord
      and Telegram channels.
  - name: Blog-to-social
    description: Blog feeds that turn a workspace's new articles into posts.
  - name: Products
    description: Products the workspace's posts can promote.
  - name: Contacts
    description: People who commented on the workspace's posts, and the lists they are on.
  - name: Profile
    description: 'The key''s user: their name and sign-in email.'
  - name: API keys
    description: 'Your API keys: listing and deleting them.'
  - name: Agent sign-up
    description: >-
      An AI agent signs a person up with a code emailed to them, and gets their
      first key. No key needed.
paths:
  /contacts/{id}:
    get:
      tags:
        - Contacts
      summary: Get a contact
      description: >-
        Needs `contacts:read`. Your role in the workspace must also let you see
        contacts: owners and managers can. Contacts are the people who commented
        on the workspace's posts, as PostSyncer already keeps them from those
        comments; nothing here contacts them or changes anything on a network.
        Gives one contact with their lists, your team's notes about them, and in
        `posts` the workspace's posts they commented on, each with their
        comments on it. Contacts are on paid plans: on Free it is refused with
        `403` `plan_limit_reached` (`limit: crm`), and nothing changes.
      operationId: getContact
      parameters:
        - name: id
          in: path
          required: true
          description: The contact's id.
          schema:
            type: integer
      responses:
        '200':
          description: The contact.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactDetail'
              examples:
                default:
                  summary: A contact who asked for the guide
                  value:
                    id: 501
                    platform: instagram
                    platform_user_id: '17841400000000001'
                    name: Selam Bekele
                    username: selam.brews
                    bio: Coffee, books and long walks in Leeds.
                    profile_url: https://cdn.postsyncer.com/examples/selam.jpg
                    cover_image_url: null
                    followers_count: 1240
                    following_count: 310
                    posts_count: 86
                    is_verified: false
                    account_created_at: null
                    total_interactions: 4
                    last_active_at: '2030-03-02T09:14:00.000000Z'
                    last_interaction_at: '2030-03-02T09:14:00.000000Z'
                    first_seen_at: '2030-02-11T17:40:00.000000Z'
                    created_at: '2030-02-11T17:40:00.000000Z'
                    updated_at: '2030-03-02T09:14:00.000000Z'
                    lists:
                      - id: 5
                        name: Guide requests
                        created_at: '2030-02-10T08:00:00.000000Z'
                        updated_at: '2030-02-10T08:00:00.000000Z'
                    notes:
                      - id: 88
                        crm_contact_id: 501
                        note: Wants the brewing guide.
                        created_at: '2030-03-02T11:20:00.000000Z'
                        updated_at: '2030-03-02T11:20:00.000000Z'
                    platform_profile_url: https://www.instagram.com/selam.brews
                    dm_url: https://ig.me/m/selam.brews
                    posts:
                      - id: 9021
                        key: 9021-post
                        uuid: 3f6b1c2e-8a4d-4f1e-9b7a-2c5d8e9f0a1b
                        content_version: 1
                        title: null
                        workspace_id: 12
                        post_frontend_url: >-
                          https://app.postsyncer.com/posts/3f6b1c2e-8a4d-4f1e-9b7a-2c5d8e9f0a1b
                        public_share_url: null
                        content: >-
                          Free brewing guide: comment "guide" and we'll send it
                          over.
                        status: PUBLISHED
                        media: null
                        labels: []
                        accounts: []
                        requires_approval: false
                        comments_count: 12
                        source: web
                        approvers: []
                        approved: false
                        published_at: '2030-03-01 09:00:00'
                        post_comments:
                          - id: 7301
                            user_id: null
                            crm_contact_id: 501
                            post_id: 9021
                            platform_post_id: 15002
                            parent_comment_id: null
                            source: SOCIAL
                            comment_url: null
                            platform: instagram
                            platform_post_comment_id: '17890000000000001'
                            author_name: Selam Bekele
                            author_avatar_url: https://cdn.postsyncer.com/examples/selam.jpg
                            content: guide please!
                            moderation_message: null
                            moderation_reason: null
                            is_resolved: false
                            is_approved: true
                            is_deleted_on_platform: false
                            is_hidden_on_platform: false
                            media_hidden_by_platform: false
                            needs_reply: false
                            quote: null
                            anchor: null
                            account_id: 43
                            account:
                              id: 43
                              name: Halden Coffee
                              username: haldencoffee
                              avatar: >-
                                https://cdn.postsyncer.com/examples/halden-logo.jpg
                            likes_count: null
                            created_at: '2030-03-02T09:14:00.000000Z'
                            updated_at: '2030-03-02T09:14:00.000000Z'
                            media: []
        '401':
          $ref: '#/components/responses/Unauthorized401'
        '403':
          description: >-
            The key lacks `contacts:read`, or its user is inactive, or your role
            in the workspace doesn't allow it, or the workspace owner is on Free
            (`plan_limit_reached`, `limit: crm`).
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/PlanLimitError'
                  - $ref: '#/components/schemas/Error'
              examples:
                missing_permission:
                  summary: The key lacks contacts:read
                  value:
                    message: >-
                      This API key does not have the "contacts:read" permission.
                      Edit the key in PostSyncer under Settings → API to grant
                      it.
                inactive_account:
                  summary: The key's user is inactive
                  value:
                    message: Your account is inactive.
                role:
                  summary: Your role can't do this
                  value:
                    message: >-
                      Your role in the workspace "Halden Coffee" does not allow
                      you to view contacts. Ask the workspace owner or a manager
                      to do it, or to change your role.
                crm_paid:
                  summary: 'Free: contacts are paid'
                  value:
                    message: Contacts are on paid plans. Upgrade to use contacts.
                    owner_plan: false
                    error: plan_limit_reached
                    limit: crm
                    used: 0
                    allowed: 0
                    plan: free
                    resets_at: null
                    upgrade_url: >-
                      https://app.postsyncer.com/dashboard?action=settings&section=billing
                    upgrade_plan:
                      plan: starter-v2
                      name: Starter
                      monthly_price: 29
                      yearly_price: 24
                      accounts: 10
                      accounts_per_workspace: false
                crm_paid_member:
                  summary: 'Free, asked by a member: the owner must upgrade'
                  value:
                    message: >-
                      Contacts are on paid plans, and this workspace's owner is
                      on the free plan. Only the workspace owner can upgrade, so
                      ask them to.
                    owner_plan: true
                    error: plan_limit_reached
                    limit: crm
                    used: 0
                    allowed: 0
                    plan: free
                    resets_at: null
                    upgrade_url: null
                    upgrade_plan: null
        '404':
          $ref: '#/components/responses/NotFound404'
        '429':
          $ref: '#/components/responses/RateLimited429'
components:
  schemas:
    ContactDetail:
      type: object
      description: >-
        A contact with their lists, the notes about them and their comments on
        the workspace's posts.
      required:
        - id
        - platform
        - platform_user_id
        - name
        - username
        - total_interactions
        - lists
        - notes
        - posts
      properties:
        id:
          type: integer
        platform:
          type: string
          description: The network they commented on.
        platform_user_id:
          type: string
          description: Their id on that network.
        name:
          type: string
          nullable: true
        username:
          type: string
          nullable: true
        bio:
          type: string
          nullable: true
        profile_url:
          type: string
          nullable: true
          description: Their profile picture.
        cover_image_url:
          type: string
          nullable: true
        followers_count:
          type: integer
          nullable: true
        following_count:
          type: integer
          nullable: true
        posts_count:
          type: integer
          nullable: true
        is_verified:
          type: boolean
          nullable: true
        account_created_at:
          type: string
          nullable: true
        total_interactions:
          type: integer
          description: Their comments on the workspace's posts.
        last_active_at:
          type: string
          nullable: true
        last_interaction_at:
          type: string
          nullable: true
        first_seen_at:
          type: string
          nullable: true
        created_at:
          type: string
          nullable: true
        updated_at:
          type: string
          nullable: true
        lists:
          type: array
          items:
            $ref: '#/components/schemas/ContactList'
          description: The workspace's contact lists they are on.
        notes:
          type: array
          items:
            $ref: '#/components/schemas/ContactNote'
          description: Your team's notes about them. Not in the list's items.
        notes_count:
          type: integer
          description: How many notes there are. In the list's items.
        platform_profile_url:
          type: string
          nullable: true
          description: Their profile on the network.
        dm_url:
          type: string
          nullable: true
          description: >-
            A link that opens a message to them on the network, where it has
            one.
        posts:
          type: array
          items:
            $ref: '#/components/schemas/ContactPost'
          description: The workspace's posts they commented on, newest first.
    PlanLimitError:
      type: object
      description: >-
        403: the workspace owner's plan doesn't include this, or its limit is
        used up. Nothing was saved. `limit` says which.
      required:
        - message
        - owner_plan
        - error
        - limit
        - used
        - allowed
        - plan
        - resets_at
        - upgrade_url
        - upgrade_plan
      properties:
        message:
          type: string
          description: What the plan doesn't allow, and what to do.
        owner_plan:
          type: boolean
          description: >-
            True when the plan is someone else's (the key's user isn't the
            workspace owner): only the owner can change it, and `message` says
            to ask them.
        error:
          type: string
          enum:
            - plan_limit_reached
        limit:
          type: string
          enum:
            - accounts
            - posts
            - workspaces
            - team
            - labels
            - campaigns
            - ai
            - moderation
            - contacts
            - crm
            - products
            - analytics
            - free_accounts
          description: >-
            What ran out: `accounts`, `posts` (this month's posts) and
            `workspaces` are counted; `free_accounts` is a post to an account
            other than the 2 a Free owner posts to after their first week (the
            account's `plan_allows_posting` is `false`); `team`, `labels`,
            `campaigns`, `ai`, `moderation` (comment moderation), `contacts`
            (contact collection), `crm` (contacts and contact lists) and
            `products` are on paid plans only. `analytics` (more than the last 7
            days) comes from the app only: API v1 and MCP don't refuse analytics
            on Free, they keep the numbers to the last 7 days, outside an
            owner's first week, and say so in `range_limited`.
        used:
          type: integer
          description: How much of the limit is used; 0 for a paid-plan feature.
        allowed:
          type: integer
          description: What the plan allows; 0 for a paid-plan feature.
        plan:
          type: string
          description: The owner's plan, like `free`.
        resets_at:
          type: string
          format: date-time
          nullable: true
          description: When a monthly limit starts again; null for the others.
        upgrade_url:
          type: string
          nullable: true
          description: Where the owner picks a plan; null when the plan is someone else's.
        upgrade_plan:
          type: object
          nullable: true
          description: >-
            The smallest plan that lifts the limit; null when the plan is
            someone else's or no plan lifts it.
          required:
            - plan
            - name
            - monthly_price
            - yearly_price
            - accounts
            - accounts_per_workspace
          properties:
            plan:
              type: string
              description: The plan's key.
            name:
              type: string
              description: The plan's name.
            monthly_price:
              type: integer
            yearly_price:
              type: integer
            accounts:
              type: integer
              description: The social accounts the plan includes.
            accounts_per_workspace:
              type: boolean
              description: True when `accounts` counts per workspace rather than in all.
    Error:
      type: object
      description: >-
        An error answer. Every one has `message`, in plain words; some add an
        `error` code and fields of their own.
      required:
        - message
      properties:
        message:
          type: string
          description: What went wrong and what to do about it.
        error:
          type: string
          description: >-
            A code a few errors add, such as `rate_limited`. See [Handle
            errors](/essentials/error-handling#answers-with-an-error-code).
    ContactList:
      type: object
      description: A contact list of the workspace.
      required:
        - id
        - name
        - created_at
        - updated_at
      properties:
        id:
          type: integer
        name:
          type: string
        contacts_count:
          type: integer
          description: How many contacts are on it. Not in a contact's own lists.
        created_at:
          type: string
          nullable: true
        updated_at:
          type: string
          nullable: true
    ContactNote:
      type: object
      description: A note of your team's about a contact.
      required:
        - id
        - crm_contact_id
        - note
        - created_at
        - updated_at
      properties:
        id:
          type: integer
        crm_contact_id:
          type: integer
        note:
          type: string
        created_at:
          type: string
          nullable: true
        updated_at:
          type: string
          nullable: true
    ContactPost:
      type: object
      description: >-
        A post of the workspace the contact commented on, as the app's contact
        sheet shows it, with their comments on it.
      additionalProperties: true
      required:
        - id
        - content
        - status
        - published_at
        - post_comments
      properties:
        id:
          type: integer
        uuid:
          type: string
        content:
          type: string
          description: The start of the post's text, up to 210 characters.
        status:
          type: string
        published_at:
          type: string
          description: When it went out, in the workspace's timezone (Y-m-d H:i:s).
        post_comments:
          type: array
          items:
            $ref: '#/components/schemas/APIComment'
          description: Their comments on the post.
    APIComment:
      type: object
      description: >-
        A comment on a post: from a network (`source: SOCIAL`), or written in
        PostSyncer (team, approval and share-link comments). `mentions`,
        `media`, `replies` and `user` are left out of a reply's
        `parent_comment`.
      required:
        - id
        - user_id
        - crm_contact_id
        - post_id
        - platform_post_id
        - parent_comment_id
        - source
        - comment_url
        - platform
        - platform_post_comment_id
        - author_name
        - author_avatar_url
        - content
        - moderation_message
        - moderation_reason
        - is_resolved
        - is_approved
        - is_deleted_on_platform
        - is_hidden_on_platform
        - media_hidden_by_platform
        - needs_reply
        - quote
        - anchor
        - account_id
        - account
        - likes_count
        - created_at
        - updated_at
      properties:
        id:
          type: integer
        user_id:
          type: integer
          nullable: true
          description: >-
            The PostSyncer member behind it: who wrote a team comment or a reply
            sent from PostSyncer (an auto-reply has the post's author, or the
            workspace owner). On a comment read from a network, the member who
            connected the account when the connected account itself wrote it.
            Null on other people's comments from a network and on a client's
            share-link comment.
        crm_contact_id:
          type: integer
          nullable: true
          description: >-
            The CRM contact saved for the commenter of a comment read from a
            network, whatever contact collection is set to. Null on team,
            approval and share-link comments, on replies sent from PostSyncer,
            and when the network withheld the author.
        post_id:
          type: integer
        platform_post_id:
          type: integer
          nullable: true
          description: >-
            The post's copy on one account (a `platforms[].id` of the post) that
            the comment is on. Null on team, approval and share-link comments.
        parent_comment_id:
          type: integer
          nullable: true
          description: The comment this one answers; null on a top-level comment.
        source:
          type: string
          enum:
            - SOCIAL
            - INTERNAL
            - APPROVAL
            - PUBLIC_SHARE
          description: >-
            `SOCIAL`: from a network, or a reply to one sent from PostSyncer.
            `INTERNAL`: a team comment, which stays in PostSyncer. `APPROVAL`: a
            note left when approving or asking for changes. `PUBLIC_SHARE`: a
            client's comment on the post's share link.
        comment_url:
          type: string
          nullable: true
          description: >-
            A link to the comment, or to the post it is on, on the network. Null
            when the network gives none.
        platform:
          type: string
          nullable: true
          description: >-
            The network, like `instagram`. Null on team, approval and share-link
            comments.
        platform_post_comment_id:
          type: string
          nullable: true
          description: >-
            The comment's id on the network. Null on a reply that hasn't gone
            out yet, and on comments that stay in PostSyncer.
        author_name:
          type: string
          nullable: true
          description: >-
            The member's name when a member wrote it; else the name or handle
            the network gives.
        author_avatar_url:
          type: string
          nullable: true
        content:
          type: string
          nullable: true
          description: >-
            The text. Null on a comment with only media. An Instagram comment
            with a picture Instagram doesn't share has `""`: see
            `media_hidden_by_platform`.
        moderation_message:
          type: string
          nullable: true
          description: What moderation did, in words.
        moderation_reason:
          type: string
          nullable: true
          description: >-
            Why moderation acted on the comment. On a comment moderation removed
            (is_deleted_on_platform true), the rule it broke:
            remove_all_comments, urls_detected, emails_detected,
            phone_numbers_detected, mentions_detected, hashtags_detected,
            keywords_detected, profanity_detected, negativity_detected or
            custom_topics_detected. On a reply the auto-reply sent:
            ai_reply_generated. Null when moderation did nothing, as on a
            comment its author deleted.
        is_resolved:
          type: boolean
          nullable: true
          description: >-
            The thread is marked resolved. Null only in the answer to [Create a
            comment](/api-reference/comments/create) when the request left it
            out; it is stored as `false`.
        is_approved:
          type: boolean
          nullable: true
          description: >-
            A flag of your own, set when the comment was created. Null when it
            wasn't set.
        is_deleted_on_platform:
          type: boolean
          nullable: true
          description: >-
            Removed on the network: deleted from PostSyncer (on YouTube, someone
            else's comment is rejected, which can't be undone), by moderation,
            or by its author. On Bluesky, a delete or moderation also marks
            someone else's reply `true`, though it stays up there. Null only in
            the answer to Create a comment.
        is_hidden_on_platform:
          type: boolean
          nullable: true
          description: >-
            Hidden on the network: by Hide, by moderation, or by a delete on X
            or Threads, which hide instead of deleting someone else's comment.
            Null only in the answer to Create a comment.
        media_hidden_by_platform:
          type: boolean
          description: >-
            Instagram: the comment holds a GIF, sticker or photo Instagram
            doesn't share. Instagram sends such a comment with no text, so its
            content is "" (an empty string) and its media is []. False on every
            other comment.
        needs_reply:
          type: boolean
          description: >-
            A top-level social comment that asks something (?, ؟ or ？), is not
            hidden or deleted, and has no reply from the workspace yet. A reply
            counts as the workspace's when it was sent from PostSyncer or
            written by the connected account in the network's own app.
        quote:
          type: string
          nullable: true
          description: 'Team comments: the words of the post this comment is about.'
        anchor:
          type: object
          nullable: true
          description: 'Team comments: where the quoted words are.'
          required:
            - thread
            - network
          properties:
            thread:
              type: integer
              description: 'The content item: 0 is the post.'
            network:
              type: string
              nullable: true
              description: >-
                The network whose own text holds the words; null for the post's
                text.
        mentions:
          type: array
          description: >-
            Team comments: the people it tags. Picture and name only, never an
            email.
          items:
            type: object
            required:
              - id
              - name
              - avatar
            properties:
              id:
                type: integer
              name:
                type: string
              avatar:
                type: string
                nullable: true
                description: A link to their picture; null when they have none.
        account_id:
          type: integer
          nullable: true
          description: >-
            A social comment: which of the post's connected accounts it is on,
            the one a reply to it is sent as. Null on team, client and approval
            comments.
        account:
          type: object
          nullable: true
          description: The account `account_id` names. Null with it.
          required:
            - id
            - name
            - username
            - avatar
          properties:
            id:
              type: integer
            name:
              type: string
              nullable: true
            username:
              type: string
              nullable: true
            avatar:
              type: string
              nullable: true
        likes_count:
          type: integer
          nullable: true
          description: >-
            The likes the network counted when PostSyncer last read the comment.
            Null when not known: team and client comments, replies sent from
            PostSyncer, Instagram and Threads.
        created_at:
          type: string
          format: date-time
          description: UTC, ISO 8601.
        updated_at:
          type: string
          format: date-time
          description: UTC, ISO 8601.
        parent_comment:
          type: object
          nullable: true
          allOf:
            - $ref: '#/components/schemas/APIComment'
          description: >-
            Get, create and update only: the comment this one answers, without
            its `mentions`, `media`, `replies` or `user`. Null on a top-level
            comment.
        replies:
          type: array
          description: >-
            The answers to it, nested up to five levels. On a list with
            `include_replies=false` it is left out.
          items:
            $ref: '#/components/schemas/APIComment'
        media:
          type: array
          description: >-
            A social comment: the photos, GIFs, videos and audio clips in it, in
            the order the comment shows them. A team comment: its attachments.
            Instagram doesn't share the pictures in comments, so an Instagram
            comment has none. On Threads, a GIF in a reply with text isn't kept.
          items:
            $ref: '#/components/schemas/APICommentMedia'
        user:
          type: object
          description: The member who wrote it. Left out when `user_id` is null.
          required:
            - id
            - name
            - avatar
          properties:
            id:
              type: integer
            name:
              type: string
            avatar:
              type: string
              nullable: true
              description: A link to their picture; null when they have none.
    APICommentMedia:
      description: >-
        A picture, GIF, video or audio clip in a social comment, or a file
        attached to a team comment: a media library item, plus its kind and
        whether the network marked it sensitive.
      allOf:
        - $ref: '#/components/schemas/APIMedia'
        - type: object
          required:
            - kind
            - sensitive
          properties:
            kind:
              type: string
              enum:
                - photo
                - gif
                - video
                - audio
                - file
              description: >-
                On a social comment, what the network sent: photo, gif, video or
                audio. type is the saved file's type, so the two can differ: a
                video kept as its still has type image and kind video; a saved
                video file's still is at thumb_url once it is made. On a team
                comment, kind follows the file's type: photo, gif, video, audio,
                or file for anything else (a PDF, for example).
            sensitive:
              type: boolean
              description: >-
                True when the network marked the picture sensitive, for example
                a Mastodon post marked sensitive or a Bluesky post with an adult
                or graphic label.
    APIMedia:
      type: object
      description: >-
        A file in the media library: what list, get and the uploads give, and
        what posts and comments hold.
      required:
        - id
        - workspace_id
        - folder_id
        - name
        - url
        - mime_type
        - size
        - is_processing
        - type
        - ai_generated_id
        - is_reference
        - progress
        - alt
        - duration_seconds
      properties:
        id:
          type: integer
          description: The file's id. Posts take it in `content[].media`.
        workspace_id:
          type: integer
        folder_id:
          type: integer
          nullable: true
          description: The folder it is in; null at the top of the library.
        name:
          type: string
          description: The file name.
        url:
          type: string
          format: uri
          description: The file itself, at a public link.
        thumb_url:
          type: string
          format: uri
          description: >-
            A picture's small copy (about 400 px on its long edge) for cards and
            lists, or a video's still. Left out until one is made: use `url`
            then. See [Picture
            copies](/api-reference/media/overview#picture-copies).
        medium_url:
          type: string
          format: uri
          description: >-
            A picture's medium copy (about 800 px on its long edge) for large
            tiles and previews. Left out until one is made, and for a picture no
            bigger than 800 px on its long edge, which needs none: use `url`
            then. Videos, GIFs and documents have none.
        mime_type:
          type: string
          nullable: true
          description: The file's type, like `image/jpeg`.
        size:
          type: integer
          nullable: true
          description: The size in bytes.
        is_processing:
          type: boolean
          description: >-
            True while the file is still being made (an AI video, for example).
            It can't go on a post or be deleted until it is ready.
        type:
          type: string
          nullable: true
          enum:
            - image
            - video
            - audio
            - document
            - null
          description: >-
            The kind of file, from `mime_type`: `document` is a PDF, Word or
            PowerPoint file. Null for any other type.
        ai_generated_id:
          type: integer
          nullable: true
          description: Set when PostSyncer's AI made the file; null for uploads.
        is_reference:
          type: boolean
          description: True for a reference picture kept for AI video, not for posting.
        progress:
          type: integer
          description: Always 100.
        alt:
          type: string
          nullable: true
          description: The alt text, when set.
        duration_seconds:
          type: number
          nullable: true
          description: >-
            A video's or sound's length in seconds, read when it was uploaded.
            Null for pictures and documents, and for files stored before lengths
            were read.
  responses:
    Unauthorized401:
      description: No API key, or not a valid one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthenticated:
              summary: No valid API key
              value:
                message: Unauthenticated.
    NotFound404:
      description: Nothing with that id in the workspaces the key can reach.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            not_found:
              summary: Not found
              value:
                message: Not found.
    RateLimited429:
      description: >-
        More than 60 requests in a minute from this key's user (the API and the
        MCP server share the count). Wait `Retry-After` seconds.
      headers:
        Retry-After:
          description: Seconds until requests are allowed again.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests allowed a minute.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests left this minute.
          schema:
            type: integer
        X-RateLimit-Reset:
          description: When requests are allowed again, as a Unix timestamp.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            too_many_attempts:
              summary: Too many requests
              value:
                message: Too Many Attempts.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.