curl --request GET \
--url https://api.avidoai.com/v0/documents/{id}/versions/{versionNumber} \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>'{
"version": {
"id": "321e4567-e89b-12d3-a456-426614174001",
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z",
"orgId": "org_123456789",
"title": "API Documentation",
"content": "This document describes the API endpoints...",
"metadata": {},
"originalSentences": [
"This is the first sentence.",
"This is the second sentence."
],
"language": "english",
"status": "APPROVED",
"versionNumber": 1,
"documentId": "123e4567-e89b-12d3-a456-426614174000"
},
"document": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z",
"orgId": "org_123456789",
"assignee": "user_123456789",
"optimized": false,
"activeVersionId": "321e4567-e89b-12d3-a456-426614174001",
"scrapeJob": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z",
"orgId": "org_123",
"initiatedBy": "user_123",
"name": "Documentation Scrape",
"url": "https://example.com",
"status": "PENDING",
"pages": [
{
"url": "https://example.com/page1",
"title": "Page 1",
"description": "This is the first page of the documentation.",
"category": "Documentation"
},
{
"url": "https://example.com/page2"
}
]
},
"scrapeJobId": "321e4567-e89b-12d3-a456-426614174000"
}
}Retrieves a specific version of a document by version number.
curl --request GET \
--url https://api.avidoai.com/v0/documents/{id}/versions/{versionNumber} \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>'{
"version": {
"id": "321e4567-e89b-12d3-a456-426614174001",
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z",
"orgId": "org_123456789",
"title": "API Documentation",
"content": "This document describes the API endpoints...",
"metadata": {},
"originalSentences": [
"This is the first sentence.",
"This is the second sentence."
],
"language": "english",
"status": "APPROVED",
"versionNumber": 1,
"documentId": "123e4567-e89b-12d3-a456-426614174000"
},
"document": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z",
"orgId": "org_123456789",
"assignee": "user_123456789",
"optimized": false,
"activeVersionId": "321e4567-e89b-12d3-a456-426614174001",
"scrapeJob": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z",
"orgId": "org_123",
"initiatedBy": "user_123",
"name": "Documentation Scrape",
"url": "https://example.com",
"status": "PENDING",
"pages": [
{
"url": "https://example.com/page1",
"title": "Page 1",
"description": "This is the first page of the documentation.",
"category": "Documentation"
},
{
"url": "https://example.com/page2"
}
]
},
"scrapeJobId": "321e4567-e89b-12d3-a456-426614174000"
}
}Your unique Avido API key
Your unique Avido Application ID
The unique identifier of the document
"123e4567-e89b-12d3-a456-426614174000"
The version number
x > 02
Successfully retrieved document version
Response containing a specific document version
A specific version of a document with its content and metadata
Show child attributes
Unique identifier of the document version
"321e4567-e89b-12d3-a456-426614174001"
When the document version was created
"2024-01-05T12:34:56.789Z"
When the document version was last modified
"2024-01-05T12:34:56.789Z"
Organization ID that owns this document version
"org_123456789"
Title of the document version
"API Documentation"
Content of the document version
"This document describes the API endpoints..."
Array of original sentences from the source
[
"This is the first sentence.",
"This is the second sentence."
]Language of the document version
"english"
Status of the document. Valid options: DRAFT, REVIEW, APPROVED, ARCHIVED.
DRAFT, REVIEW, APPROVED, ARCHIVED "APPROVED"
Version number of this document version
1
ID of the document this version belongs to
"123e4567-e89b-12d3-a456-426614174000"
A Core Document represents a piece of content that can be organized hierarchically with parent-child relationships and supports versioning
Show child attributes
Unique identifier of the document
"123e4567-e89b-12d3-a456-426614174000"
When the document was created
"2024-01-05T12:34:56.789Z"
When the document was last modified
"2024-01-05T12:34:56.789Z"
Organization ID that owns this document
"org_123456789"
User ID of the person assigned to this document
"user_123456789"
Whether the document has been optimized
false
ID of the currently active version of this document
"321e4567-e89b-12d3-a456-426614174001"
Optional scrape job that generated this document
Show child attributes
The unique identifier of the scrape job
"123e4567-e89b-12d3-a456-426614174000"
When the scrape job was created
"2024-01-05T12:34:56.789Z"
When the scrape job was last modified
"2024-01-05T12:34:56.789Z"
Organization ID that owns the scrape job
"org_123"
User ID who initiated the scrape job
"user_123"
The name/title of the scrape job
"Documentation Scrape"
The URL that was scraped
"https://example.com"
Current status of the scrape job
MAPPING, PENDING, IN_PROGRESS, COMPLETED, FAILED "PENDING"
The pages scraped from the URL
Show child attributes
The URL of the page
"https://example.com/page1"
The title of the page
"Page 1"
The description of the page
"This is the first page of the documentation."
The category of the page
"Documentation"
[
{
"url": "https://example.com/page1",
"title": "Page 1",
"description": "This is the first page of the documentation.",
"category": "Documentation"
},
{ "url": "https://example.com/page2" }
]Optional ID of the scrape job that generated this document
"321e4567-e89b-12d3-a456-426614174000"