API REFERENCE
Get Post
On this page
/api/posts/{id}Availability: pending. This endpoint is specified ahead of implementation and is not yet live on the hosted API; it ships through recoupable/app#2241. Do not rely on it until this notice is removed.
One post, with its status, live post_url once posted, error_message if it failed, and text_verified once the live text has been re-read. This is the polling target after Create Post.
Authentication
x-api-key in header
bearerAuth bearer
Request
curl --request GET \
--url 'https://api.recoupable.dev/api/posts/YOUR_ID' \
--header 'x-api-key: YOUR_API_KEY'Replace the YOUR_ placeholders with your values. Required query parameters are included; optional parameters are listed below.
Try it
Fill in the fields, send the request from your browser, and read the live response. The curl below updates as you type.
Kept in this browser tab only and cleared when it closes.
curl --request GET \
--url 'https://recoup-api.vercel.app/api/posts/{id}'Parameters
Path parameters
idstringrequiredThe post's id, from Create Post.
Query parameters
account_idstringOptional. Act on behalf of another account you can access. Defaults to the calling account.
Responses
200The post.+
application/json
statusstring · enumStatus of the request
Values: "success"
postobjectOne post to one account.
Properties for post
idstringThe post's id.
format: uuid
account_idstringThe account whose connection posts.
format: uuid
platformstring · enumTarget platform. The account must have this platform connected.
Values: "instagram", "x", "linkedin", "youtube"
sub_account_idstring | nullLinkedIn organization URN when posting as a Page, else null.
statusstring · enumLifecycle phase. scheduled until publish_at, publishing while the platform upload runs, then posted or failed. cancelled only from scheduled.
Values: "scheduled", "publishing", "posted", "failed", "cancelled"
video_urlstringThe video that is or was published.
cover_urlstring | nullThe cover or thumbnail image, if any.
titlestring | nullSubmitted title.
descriptionstring | nullSubmitted body text.
privacystring | nullSubmitted YouTube visibility.
tagsarray | nullSubmitted YouTube tags.
Properties for tags
string
publish_atstring | nullRequested publish time. Null when published on creation.
format: date-time
post_urlstring | nullLive URL on the platform. Null until posted.
error_messagestring | nullWhy publishing failed, as returned by the platform (e.g. a daily upload quota). Null unless status is failed.
text_verifiedboolean | nullWhether the live text, re-read from the platform after posting, equals the submitted title/description. Null until checked.
created_atstringWhen the post was created.
format: date-time
updated_atstringWhen the post last changed.
format: date-time
400id is not a valid uuid.+
application/json
statusstring · enumrequiredAlways error
Values: "error"
missing_fieldsarray<one of>JSON path segments to the first field that failed validation, e.g. ["description"]
Item properties for missing_fields
oneOf · string 1
string
oneOf · integer 2
integer
errorstringrequiredHuman-readable error message
401Unauthorized.+
application/json
statusstring · enumrequiredAlways error
Values: "error"
missing_fieldsarray<one of>JSON path segments to the first field that failed validation, e.g. ["description"]
Item properties for missing_fields
oneOf · string 1
string
oneOf · integer 2
integer
errorstringrequiredHuman-readable error message
403Access denied to this post's account.+
application/json
statusstring · enumrequiredAlways error
Values: "error"
missing_fieldsarray<one of>JSON path segments to the first field that failed validation, e.g. ["description"]
Item properties for missing_fields
oneOf · string 1
string
oneOf · integer 2
integer
errorstringrequiredHuman-readable error message
404No post with that id.+
application/json
statusstring · enumrequiredAlways error
Values: "error"
missing_fieldsarray<one of>JSON path segments to the first field that failed validation, e.g. ["description"]
Item properties for missing_fields
oneOf · string 1
string
oneOf · integer 2
integer
errorstringrequiredHuman-readable error message
500Internal server error.+
application/json
statusstring · enumrequiredAlways error
Values: "error"
missing_fieldsarray<one of>JSON path segments to the first field that failed validation, e.g. ["description"]
Item properties for missing_fields
oneOf · string 1
string
oneOf · integer 2
integer
errorstringrequiredHuman-readable error message
Full specification
Download the OpenAPI file for complete schemas, constraints, and examples.
Download social.jsonView operation source
{
"summary": "Get post",
"description": "**Availability: pending.** This endpoint is specified ahead of implementation and is not yet live on the hosted API; it ships through recoupable/app#2241. Do not rely on it until this notice is removed.\n\nOne post, with its status, live `post_url` once posted, `error_message` if it failed, and `text_verified` once the live text has been re-read. This is the polling target after [Create Post](/api-reference/publishing/create).",
"security": [
{
"apiKeyAuth": []
},
{
"bearerAuth": []
}
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "The post's id, from [Create Post](/api-reference/publishing/create)."
},
{
"name": "account_id",
"in": "query",
"required": false,
"schema": {
"type": "string",
"format": "uuid"
},
"description": "Optional. Act on behalf of another account you can access. Defaults to the calling account."
}
],
"responses": {
"200": {
"description": "The post.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PostDetailResponse"
}
}
}
},
"400": {
"description": "`id` is not a valid uuid.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PostErrorResponse"
}
}
}
},
"401": {
"description": "Unauthorized.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PostErrorResponse"
}
}
}
},
"403": {
"description": "Access denied to this post's account.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PostErrorResponse"
}
}
}
},
"404": {
"description": "No post with that id.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PostErrorResponse"
}
}
}
},
"500": {
"description": "Internal server error.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PostErrorResponse"
}
}
}
}
},
"x-recoup-availability": "pending"
}