Get a social post
GET
/api/v1/social/posts/{id}
const url = 'https://digize.com/api/v1/social/posts/example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/social/posts/example \ --header 'x-api-key: <x-api-key>'One post with each network’s part, its links and figures.
Needs the social:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
id
required
string
origin
required
reviews for a Google post written in Reviews › Posts.
string
status
required
Draft; pending_approval waits on an approver; scheduled goes out at scheduledAt; publishing is on its way; published, partial (some networks) or failed; rejected was sent back.
string
text
required
string
media
required
link
required
string | null
linkPreview
required
firstComment
required
string | null
queueId
required
string | null
recurrence
required
seriesId
required
The repeating post this one came from.
string | null
occurrences
required
number
approvers
required
Array<string>
reviewedBy
required
string | null
reviewNote
required
string | null
createdBy
required
string
createdById
required
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
targets
required
Array<object>
object
id
required
string
accountId
required
string
network
required
string
accountName
required
string
text
required
What this account gets instead of the post’s text.
string | null
media
required
Any of:
Array<object>
null
options
required
status
required
string
externalId
required
string | null
url
required
The post on the network.
string | null
error
required
string | null
firstCommentError
required
string | null
metrics
required
Example
{ "origin": "social", "status": "draft", "media": [ { "kind": "image", "fileName": "", "contentType": "", "bytes": 0, "alt": "" } ], "recurrence": { "every": "day" }, "targets": [ { "network": "facebook", "media": [ { "kind": "image", "fileName": "", "contentType": "", "bytes": 0, "alt": "" } ], "options": { "privacy": "PUBLIC_TO_EVERYONE" }, "status": "pending" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}