curl https://api.raily.ai/v1/content?limit=10&type=article \
-H "Authorization: Bearer raily_sk_xxxxx"
{
"object": "list",
"data": [
{
"id": "cnt_abc123xyz",
"object": "content",
"externalId": "article-123",
"title": "Introduction to AI",
"type": "article",
"source": "https://example.com/articles/ai-intro",
"policyId": "pol_default",
"metadata": {
"author": "Jane Smith",
"category": "Technology",
"wordCount": 2500
},
"created": "2024-01-15T10:30:00Z",
"updated": "2024-01-15T10:30:00Z"
},
{
"id": "cnt_def456abc",
"object": "content",
"externalId": "article-124",
"title": "Machine Learning Basics",
"type": "article",
"source": "https://example.com/articles/ml-basics",
"policyId": "pol_premium",
"metadata": {
"author": "John Doe",
"category": "Technology",
"wordCount": 3200
},
"created": "2024-01-14T09:00:00Z",
"updated": "2024-01-14T09:00:00Z"
}
],
"hasMore": true,
"nextCursor": "cnt_ghi789",
"totalCount": 156
}
Retrieve a list of all content items
curl https://api.raily.ai/v1/content?limit=10&type=article \
-H "Authorization: Bearer raily_sk_xxxxx"
{
"object": "list",
"data": [
{
"id": "cnt_abc123xyz",
"object": "content",
"externalId": "article-123",
"title": "Introduction to AI",
"type": "article",
"source": "https://example.com/articles/ai-intro",
"policyId": "pol_default",
"metadata": {
"author": "Jane Smith",
"category": "Technology",
"wordCount": 2500
},
"created": "2024-01-15T10:30:00Z",
"updated": "2024-01-15T10:30:00Z"
},
{
"id": "cnt_def456abc",
"object": "content",
"externalId": "article-124",
"title": "Machine Learning Basics",
"type": "article",
"source": "https://example.com/articles/ml-basics",
"policyId": "pol_premium",
"metadata": {
"author": "John Doe",
"category": "Technology",
"wordCount": 3200
},
"created": "2024-01-14T09:00:00Z",
"updated": "2024-01-14T09:00:00Z"
}
],
"hasMore": true,
"nextCursor": "cnt_ghi789",
"totalCount": 156
}
article, report, image, dataset, videopolicylistShow Content Object
cnt_abc123)contentcurl https://api.raily.ai/v1/content?limit=10&type=article \
-H "Authorization: Bearer raily_sk_xxxxx"
{
"object": "list",
"data": [
{
"id": "cnt_abc123xyz",
"object": "content",
"externalId": "article-123",
"title": "Introduction to AI",
"type": "article",
"source": "https://example.com/articles/ai-intro",
"policyId": "pol_default",
"metadata": {
"author": "Jane Smith",
"category": "Technology",
"wordCount": 2500
},
"created": "2024-01-15T10:30:00Z",
"updated": "2024-01-15T10:30:00Z"
},
{
"id": "cnt_def456abc",
"object": "content",
"externalId": "article-124",
"title": "Machine Learning Basics",
"type": "article",
"source": "https://example.com/articles/ml-basics",
"policyId": "pol_premium",
"metadata": {
"author": "John Doe",
"category": "Technology",
"wordCount": 3200
},
"created": "2024-01-14T09:00:00Z",
"updated": "2024-01-14T09:00:00Z"
}
],
"hasMore": true,
"nextCursor": "cnt_ghi789",
"totalCount": 156
}