AI API
Repurai can generate a short summary for any feed post, and fetch the full transcript from a YouTube video post.
Summarize a post
Generates a short summary of a feed post and saves it to the post. Future calls to Get post details will include the summary field.
The post must have content posts with no text body will return a 422 error.
Request
curl -X POST https://repurai.com/api/v1/ai/summarize/[postId] \
-H "Authorization: Bearer [API_Key]"
Response
success
{
"success": true,
"data": {
"summary": "Anthropic has introduced two new features for Claude Managed Agents designed to give users greater control over their security and privacy. These enhancements aim to improve safety for those utilizing the platform's automated agent capabilities.",
"postId": "a21cb00b-cdea..."
}
}
Get saved summary
Returns the summary that was previously saved for a post. If no summary has been generated yet, summary is null.
Request
curl https://repurai.com/api/v1/ai/summarize/[postId] \
-H "Authorization: Bearer [API_Key]"
Response
success
{
"success": true,
"data": {
"summary": "Anthropic has introduced two new features for Claude Managed Agents designed to give users greater control over their security and privacy. These enhancements aim to improve safety for those utilizing the platform's automated agent capabilities.",
"saved": true
}
}
Fetch transcript
Fetches and saves the transcript for a YouTube video post. Repurai automatically detects the video URL from the post — no extra input is needed.
If a transcript has already been saved for this post, it is returned straight away without fetching again.
Returns a 422 error if the post is not a YouTube video.
Request
curl -X POST https://repurai.com/api/v1/ai/transcript/[postId] \
-H "Authorization: Bearer [API_Key]"
Response
success
{
"success": true,
"data": {
"transcript": "[music]\n>> Good to go? Can people hear me okay?\nAwesome. Cool. Thank you.\nI'm slightly embarrassed by the\ngrandiose title. [truncated for brevity] ...",
"postId": "f3c97a43-22c9..."
},
"saved": true
}
Get saved transcript
Returns the transcript that was previously saved for a post. If no transcript has been fetched yet, transcript is null.
Request
curl https://repurai.com/api/v1/ai/transcript/[postId] \
-H "Authorization: Bearer [API_Key]"
Response
success
{
"success": true,
"data": {
"transcript": "[music]\n>> Good to go? Can people hear me okay?\nAwesome. Cool. Thank you.\nI'm slightly embarrassed by the\ngrandiose title. [truncated for brevity] ...",
"saved": true
}
}