Yurba Docs
Yurba Documentation

Get started

Accounts

Apps

Users

Relationships

Dialogs (Messages)

Tracks (MuseBase)

Photos

Posts

Comments

Safety

Other

Yurba CDN (cdn.yurba.one)

For Desktop Developers

GET /posts/{post_id}

Returns PostModel.

Request URL params:

post_id: int

Request headers:

token: string

Response:

{ ID: int, Author: ShortUserModel, Target: ShortUserModel, Content: string, Photos: list[int], Timestamp: int, Likes: { IsLikedByYou: bool, Likes: int }, Comments: int, Reposts: int, IsAd: int, Language: int, RepostID: int } More about ShortUserModel you can look here: /user/{user_id}

Example:

{ ID: 291, Author: { ID: 2, Name: "Andrey", Surname": "Quizlem", Link: "zrlld", Avatar": 766, Sub: 1, Verify: "Default", Ban: 0, Emoji: ":no-energy:", CosmeticAvatar: 15 }, Target: null, Content: "Ласкаво просимо в Новий рік 2024", Photos: [], Timestamp: 1700920270, Likes: { IsLikedByYou: false, Likes: 1 }, Comments: 0, Reposts: 0, IsAd: 0, Language: 2, RepostID: 0 }

Errors:

auth_failed: token authorization failed

invalid_photos: the photo list cannot be read