Page cover

Create Post

Creating a new post

Create a new post.

POST https://api.metaforo.io/v2/threads/{thread_id}/posts/create

Creates a new pet.

Headers

Name
Type
Description

authorization*

String

JWT token

Request Body

Name
Type
Description

thread_id*

Int

The id of the thread which the newly created post belongs to

content*

String

Post's content

file_attachments

Int

api_key*

String

The API KEY that assigned to you.

{
    "status": true,
    "code": "20000",
    "description": "",
    "server": "rest",
    "data": {
        "post": {
            "group_id": 4656,
            "user_id": 7088,
            "parent_id": -1,
            "content": "[]",
            "sign": "",
            "sign_msg": "",
            "depth": 1,
            "thread_id": 35651,
            "id": 1937944,
            "attached_files": [
                {
                    "id": 1052,
                    "url": "https://cdn.everforo.com/20220601/Screenshot_20220531-153357.jpg",
                    "old_url": "",
                    "name": "Screenshot_20220531-153357.jpg",
                    "size": "45605",
                    "mime_type": "application/octet-stream",
                    "group_id": 4656,
                    "post_id": 1937944,
                    "thread_id": 35651,
                    "ipfs": null
                }
            ],
            "user": {
                "id": 7088,
                "name": "6vv",
                "email": "[email protected]",
                "web3_public_key": "",
                "photo_url": "https://cdn.everforo.com/20220601/32d10f16fd278a91aabef3cb7a7392e7.png",
                "public_key": "FAKE",
                "likes": 0,
                "posts": 0,
                "activate": 1,
                "last_post_time": "2022-06-01T09:52:06.000000Z",
                "stripe_cus_id": "",
                "salt": "",
                "_import_source_import_id": null
            },
            "likes": [],
            "flags": [],
            "badge": [],
            "user_title": [],
            "total_likes": 0,
            "total_report": 0
        },
        "is_subscribe": true
    }
}

Good to know: This API method was created using the API Method block, it's how you can build out an API method documentation from scratch. Have a play with the block and you'll see you can do some nifty things like add and reorder parameters, document responses, and give your methods detailed descriptions.

Last updated