Skip to main content
GET
Get Post
Fetch a post by its share code.

Behavior

  • files lists every file in the post, in order. file_count is its length; a post with more than one file is an album.
  • url is the share page. Each files[].url is the direct file. On private posts the file and thumbnail URLs are signed and expire after 24 hours; fetch the post again for fresh ones.
  • files[].name is what Delete File takes.
  • files[].thumbnail_url is a still frame for videos uploaded with POST /upload, and null otherwise. width, height, size and mime_type are null when unknown.
  • liked is whether you have liked the post.
  • moderated and restricted are only present when you own the post. A restricted post keeps its privacy, is hidden from Discover and profiles, and cannot be made public.
  • When you own a personal post, it also carries access: the users who can open it while it is private. Change it with Update Post. Each entry has suspended, true while that account is suspended; show it dimmed rather than hiding it, since nothing about the access changes.
  • Each request counts a view on public posts that are not moderated. Views are deduplicated per IP and post: up to 3 counted views per IP per post per hour. The returned view_count includes the view just counted.
  • Who can see what:
    • Drafts are visible only to their owner.
    • Private posts are visible to their owner and to users the owner has given access to.
    • Team posts are visible only to members of that team. They have team_id set and like_count and liked are null, since team posts cannot be liked.
    • Posts whose owner is suspended are visible only to the owner.
    • Anyone else gets 404 with type not_found.
  • A moderated post is returned in full to its owner, with moderated: true. Anyone else who could otherwise see it gets 403 with type moderated.
  • If the post’s author has blocked you, the response is 403 with type blocked.
  • Shares a rate limit bucket with GET /users/{id}/posts.

Examples

Responses

Your own post:
Someone else’s post. moderated and restricted are omitted:
An album:
A team post:

Errors

Authorizations

relay-key
string
header
required

Your relay key from snipp.gg/settings/relay

Path Parameters

code
string
required

Post share code.

Response

Success

post
object
required