Documentation Index
Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt
Use this file to discover all available pages before exploring further.
Get Posts
POST https://services.leadconnectorhq.com/social-media-posting/{locationId}/posts/list
Autorizacion
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.
Path parameters
locationId
string
default:"ve9EPM428h8vShlRW1KT"
required
Account Id
Body
type
string
default:"Filter type"
type must be one of the following values: recent, all, scheduled, draft, failed, in_review, published, in_progress and deleted
List of account Ids seperated by comma as a string
skip
string
default:"1"
required
limit
string
default:"10"
required
fromDate
string
default:"2024-01-22T05:32:49.463Z"
required
From Date
toDate
string
default:"2024-03-20T05:32:49.463Z"
required
To Date
includeUsers
string
default:"true"
required
Include User Data
Post Type must be one of the following values: - post, story, reel
Respuestas
201 - Successful response
success
boolean
default:"True"
required
Success or Failure
statusCode
number
default:"201"
required
Status Code
message
string
default:"Fetched Posts"
required
Message
{
"success": true,
"statusCode": 201,
"message": "Fetched Posts"
}
422 - Unprocessable Entity
Ejemplo
curl -X POST 'https://services.leadconnectorhq.com/social-media-posting/YOUR_locationId/posts/list' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Version: 2021-07-28' \
-H 'Content-Type: application/json' \
-d '{
"type": "Filter type",
"accounts": "660a83fc29deacac50033e2b_omaDY3RbWtTP511e808O_17841465964543589, 38bF83fc29deacac50033e2b_omaDY3RbWtr3P11e808O_17841465964543998",
"skip": "1",
"limit": "10",
"fromDate": "2024-01-22T05:32:49.463Z",
"toDate": "2024-03-20T05:32:49.463Z",
"includeUsers": "true",
"postType": "post"
}'