Search...
Generate a test token to explore our APIs
Get Post By Slug
Developer Preview
Retrieves a single post by URL slug.
Authorization
This endpoint requires an authorization header - pass the access token from the OAuth installation flow.
Permissions
This endpoint requires the Read Forums permission scope.
GET
https://www.wixapis.com/forum/v1/posts/slugs/{slug}
Path Params
NAME
TYPE
DESCRIPTION
slug
Required
string
URL slug.
Query Params
NAME
TYPE
DESCRIPTION
extraFields
Array<string>
Supported values: UNKNOWN
, IMAGES
, VIDEOS
, URL
.
Array of extra post fields to be added in the response.
Response Object
NAME
TYPE
DESCRIPTION
post
object
Post for the provided post ID.
Status/Error Codes
The response will include an HTTP status code.
Was this helpful?
Request
curl
Copy Code
1curl -X GET https://www.wixapis.com/forum/v1/posts/slugs/welcome-to-the-forum2 -H 'Content-Type: application/json;charset=UTF-8'3 -H 'Authorization: <ACCESS_TOKEN>'
Response
json
1{"post": {2 "id": "5cacd5fe04976c0015f35363",3 "categoryId": "5cacd5fe04976c0015f35362",4 "ownerId": "a27d2491-90b0-4a3a-87d9-7a9de00bf17a",5 "title": "Welcome to the Forum!",6 "contentText": "It’s good to have you here! Feel free to share anything - stories, ideas, pictures or whatever is on your mind.",7 "bestAnswerCommentId": "5ce7bb354f055300a4b7f945",8 "pinned": false,9 "closed": false,10 "commentCount": 3,11 "likeCount": 0,12 "viewCount": 11,13 "createdDate": "2019-04-09T17:27:26.171Z",14 "updatedDate": "2019-04-09T17:27:26.171Z",15 "lastActivityDate": "2019-05-24T11:55:29.339Z",16 "slug": "welcome-to-the-forum",17 "postType": "DISCUSSION",18 "commentInteraction": "REACTION",19 "url": {20 "base": "https://wix.com",21 "path": "/forum/discussion-corner/welcome-to-the-forum"22 }23}}