Pryon Content Service API
The Content Service API from Pryon — 16 operation(s) for content service.
The Content Service API from Pryon — 16 operation(s) for content service.
openapi: 3.2.0
info:
title: Retrieval Content Service API
version: '1.0'
contact:
name: Pryon Product Support
url: https://pryon.zendesk.com
email: support@pryon.zendesk.com
description: ''
x-logo:
altText: Pryon APIs
servers:
- url: https://api.pryon.net
description: Pryon Cloud
tags:
- name: Content Service
paths:
/api/knowledge/v1alpha1/content-groups:
get:
operationId: ContentService_ListContentGroups
parameters:
- description: Unique identifier of the knowledge domain that supplied the exchange response.
in: query
name: knowledge_domain_id
schema:
type: string
- description: Unique identifier for the content within the matching content groups.
in: query
name: content_id
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1ListContentGroupsResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: List Content Groups
tags:
- Content Service
description: Filter content groups by knowledge domain and content.
post:
operationId: ContentService_CreateContentGroup
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1CreateContentGroupRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1GetContentGroupResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Create Content Group
tags:
- Content Service
x-codegen-request-body-name: body
parameters:
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
/api/knowledge/v1alpha1/content-groups/{content_group_id}:
delete:
operationId: ContentService_DeleteContentGroup
parameters:
- description: Unique identifier for the content group.
in: path
name: content_group_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
type: object
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Delete Content Group
tags:
- Content Service
description: Delete a content group without altering the content resources.
get:
operationId: ContentService_GetContentGroup
parameters:
- description: Unique identifier for the content group.
in: path
name: content_group_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1GetContentGroupResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Get Content Group
tags:
- Content Service
description: Retrieve a content group using the ID.
/api/knowledge/v1alpha1/content-groups/{content_group_id}/contents:
delete:
operationId: ContentService_DeleteContentGroupContents
parameters:
- description: Unique identifier for the content group.
in: path
name: content_group_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
type: object
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Delete Content Group Contents
tags:
- Content Service
description: Delete all child content associations with the parent content group.
get:
operationId: ContentService_ListContentGroupContents
parameters:
- description: Unique identifier for the content group.
in: path
name: content_group_id
required: true
schema:
type: string
- description: Maximum page size is 100; default is 100.
in: query
name: page_size
schema:
format: int32
type: integer
- description: For multiple pages; must be specified in each request for two pages per sheet.
in: query
name: page_token
schema:
type: string
- description: If set to True will only return item IDs.
in: query
name: return_only_id
schema:
type: boolean
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1ListContentGroupContentsResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: List Content Group Contents
tags:
- Content Service
description: List content group sources by ID.
/api/knowledge/v1alpha1/content-groups/{content_group_id}/contents/{content_id}:
delete:
operationId: ContentService_DeleteContentGroupContent
parameters:
- description: Unique identifier for the content group.
in: path
name: content_group_id
required: true
schema:
type: string
- description: Unique identifier for the content within the matching content groups.
in: path
name: content_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
type: object
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Delete Content Group Content
tags:
- Content Service
description: Delete content associations within the parent content group.
get:
operationId: ContentService_GetContentGroupContent
parameters:
- description: Unique identifier for the content group.
in: path
name: content_group_id
required: true
schema:
type: string
- description: Unique identifier for the content within the matching content groups.
in: path
name: content_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1GetContentGroupContentResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Get Content Group Content
tags:
- Content Service
description: Get content group sources by ID.
/api/knowledge/v1alpha1/content-groups/{content_group_id}:cascade:
delete:
operationId: ContentService_CascadeDeleteContentGroup
parameters:
- description: Unique identifier for the content group.
in: path
name: content_group_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
type: object
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Cascade Delete Content Group
tags:
- Content Service
description: Delete content group source associations and remove from knowledge domain.
/api/knowledge/v1alpha1/content-groups/{data.content_group_id}:
patch:
operationId: ContentService_UpdateContentGroup
parameters:
- description: Unique identifier for the content group.
in: path
name: data.content_group_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1GetContentGroupResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Update Content Group
tags:
- Content Service
description: Update the display name for a content group.
/api/knowledge/v1alpha1/content-groups/{data.content_group_id}/contents/{data.content_id}:
post:
operationId: ContentService_CreateContentGroupContent
parameters:
- description: Unique identifier for the content group.
in: path
name: data.content_group_id
required: true
schema:
type: string
- description: Unique identifier for the content within the matching content groups.
in: path
name: data.content_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1ContentGroupContentRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1GetContentGroupContentResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Create Content Group Content
tags:
- Content Service
x-codegen-request-body-name: body
description: Create content group sources.
/api/knowledge/v1alpha1/contents:
get:
operationId: ContentService_ListContents
parameters:
- description: Unique identifier of the knowledge domain that supplied the exchange response.
in: query
name: knowledge_domain_id
schema:
type: string
- description: Unique identifier for the content within the matching content groups.
in: query
name: content_group_id
schema:
type: string
- description: Precise location of the source material.
in: query
name: source_location
schema:
type: string
- description: Maximum page size is 100; default is 100.
in: query
name: page_size
schema:
format: int32
type: integer
- description: For multiple pages; must be specified in each request for two pages per sheet.
in: query
name: page_token
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1ListContentsResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: List Contents
tags:
- Content Service
description: List contents associated with a knowledge domain.
post:
operationId: ContentService_CreateContent
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1CreateContentRequest'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1GetContentResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Create Content
tags:
- Content Service
x-codegen-request-body-name: body
description: Create methods for contents.
parameters:
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
/api/knowledge/v1alpha1/contents/{content_id}:
delete:
operationId: ContentService_DeleteContent
parameters:
- description: Unique identifier for the content to be deleted.
in: path
name: content_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
type: object
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Delete Content
tags:
- Content Service
description: Delete the content and all child resources.
get:
operationId: ContentService_GetContent
parameters:
- description: Unique identifier for the content to be returned.
in: path
name: content_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1GetContentResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
tags:
- Content Service
summary: Get Content
description: ''
/api/knowledge/v1alpha1/contents/{content_id}/image:
get:
operationId: ContentService_GetContentImage
parameters:
- description: Unique identifier for the content within the matching content groups.
in: path
name: content_id
required: true
schema:
type: string
- description: Page number in the content.
in: query
name: page
schema:
format: int32
type: integer
- description: True does not compress the image data; default is false (compressed).
in: query
name: uncompressed
schema:
type: boolean
- description: True returns a debug image.
in: query
name: debug
schema:
type: boolean
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
type: object
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Get Content Image
tags:
- Content Service
description: Return an image representation of the content.
/api/knowledge/v1alpha1/contents/{content_id}/processed-extracts:
get:
operationId: ContentService_ListProcessedContentExtracts
parameters:
- description: Unique identifier for the content within the matching content groups.
in: path
name: content_id
required: true
schema:
type: string
- description: Unique identifier of the knowledge domain that contains the exchange response.
in: query
name: knowledge_domain_id
schema:
type: string
- description: Maximum page size is 100; default is 100.
in: query
name: page_size
schema:
format: int32
type: integer
- description: For multiple pages; must be specified in each request for two pages per sheet.
in: query
name: page_token
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1ListProcessedContentExtractsResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: List Processed Content Extracts
tags:
- Content Service
description: List initial processed extracts by content ID.
/api/knowledge/v1alpha1/contents/{content_id}/retrieval-extracts:
get:
operationId: ContentService_ListRetrievalContentExtracts
parameters:
- description: Unique identifier for the content within the matching content groups.
in: path
name: content_id
required: true
schema:
type: string
- description: Unique identifier of the knowledge domain that supplied the exchange response.
in: query
name: knowledge_domain_id
schema:
type: string
- description: Maximum page size is 100; default is 100.
in: query
name: page_size
schema:
format: int32
type: integer
- description: For multiple pages; must be specified in each request for two pages per sheet.
in: query
name: page_token
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1ListRetrievalContentExtractsResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: List Retrieval Content Extracts
tags:
- Content Service
description: List of retrieval extracts by content ID.
/api/knowledge/v1alpha1/contents/{content_id}/subjects:
get:
operationId: ContentService_ListContentSubjects
parameters:
- description: Unique identifier for the content within the matching content groups.
in: path
name: content_id
required: true
schema:
type: string
- description: Maximum page size is 100; default is 100.
in: query
name: page_size
schema:
format: int32
type: integer
- description: IFor multiple pages; must be specified in each request for two pages per sheet.
in: query
name: page_token
schema:
type: string
- description: Sort order for multi page requests; valid options are rank, rank desc, create_time, create_time desc.
in: query
name: order_by
schema:
type: string
- description: Unique identifier for the grouping of specific topics.
in: query
name: subject_category_id
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1ListSubjectsResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: List Content Subjects
tags:
- Content Service
description: List subjects associated with a content item.
/api/knowledge/v1alpha1/contents/{content_id}/summary:
get:
operationId: ContentService_GetSummary
parameters:
- description: Unique identifier for the content within the matching content groups.
in: path
name: content_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1GetSummaryResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Get Summary
tags:
- Content Service
description: Get summary information by content ID.
/api/knowledge/v1alpha1/contents/{content_id}:cascade:
delete:
operationId: ContentService_CascadeDeleteContent
parameters:
- description: Unique identifier for the content to be deleted.
in: path
name: content_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
type: object
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Cascade Delete Content
tags:
- Content Service
description: Delete the content and all child resources, and remove from all content groups.
/api/knowledge/v1alpha1/domains/{knowledge_domain_id}/contents/{content_id}/metadata:
get:
operationId: ContentService_GetContentMetadata
parameters:
- description: Unique identifier of the knowledge domain containing the requested metadata
in: path
name: knowledge_domain_id
required: true
schema:
type: string
- description: Unique identifier for the content within the matching content groups.
in: path
name: content_id
required: true
schema:
type: string
- name: Authorization
in: header
required: true
schema:
type: string
example: 'Authorization: Bearer {base64-encoded-token}'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/filename_v1alpha1GetContentMetadataResponse'
description: A successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/filename_googlerpcStatus'
description: An unexpected error response.
summary: Get Content Metadata
tags:
- Content Service
description: List metadata by content ID.
components:
schemas:
filename_v1alpha1DataSourceMetadata:
properties:
display_field_name:
description: The data source metadata category, display_field_name.
type: string
value:
description: The data source metadata value.
properties: {}
type: object
data_type:
$ref: '#/components/schemas/filename_v1alpha1DataType'
type: object
filename_v1alpha1ContentGroupContent:
properties:
content_id:
description: Unique identifier for the content within the matching content groups.
type: string
content_group_id:
description: Unique identifier for the content group.
type: string
title: Joins Content to a Content Group
type: object
filename_v1alpha1GetSubjectResponse:
properties:
metadata:
$ref: '#/components/schemas/filename_v1alpha1ResourceMetadata'
data:
$ref: '#/components/schemas/filename_v1alpha1SubjectEntity'
type: object
filename_v1alpha1SummaryItem:
properties:
text:
type: string
html:
type: string
type: object
filename_v1alpha1GetContentResponse:
properties:
metadata:
$ref: '#/components/schemas/filename_v1alpha1ResourceMetadata'
data:
$ref: '#/components/schemas/filename_v1alpha1Content'
type: object
filename_v1alpha1GetContentMetadataResponse:
properties:
metadata:
$ref: '#/components/schemas/filename_v1alpha1ResourceMetadata'
data_source_metadata:
properties: {}
title: The Raw Data Source Metadata for the Content
type: object
type: object
filename_v1alpha1CollectionMetadata:
properties:
uuid:
description: Unique identifier for the interaction returned in the resource response; the response ID.
type: string
response_time_millis:
description: Response time (in milliseconds).
format: int64
type: integer
title: Metadata that will be returned with each collection-level GET
type: object
filename_v1alpha1ListRetrievalContentExtractsResponse:
properties:
metadata:
$ref: '#/components/schemas/filename_v1alpha1CollectionMetadata'
items:
items:
$ref: '#/components/schemas/filename_v1alpha1ListRetrievalContentExtractsItem'
title: Array of retrieval extracts matching the request.
type: array
next_page_token:
title: For multiple pages; must be specified in each request for two pages per sheet.
type: string
page_size:
description: Sme as page size in request.
format: int32
type: integer
type: object
filename_v1alpha1ListContentItem:
properties:
data:
$ref: '#/components/schemas/filename_v1alpha1Content'
metadata:
$ref: '#/components/schemas/filename_v1alpha1ResourceMetadata'
type: object
filename_v1alpha1ContentGroup:
properties:
content_group_id:
description: Unique identifier for the content group.
type: string
display_name:
description: Name of the collection.
type: string
description:
title: Description of the content group.
type: string
source_location:
description: Unique identifier for the source location of the content group.
type: string
content_statuses:
description: Content status for each item in the content group; index corresponds to the number of contents in each content group with that status.
items:
format: int32
type: integer
type: array
service_id:
description: Third-party service connect; if not specified, the oldest service connect with an authority and type matching the source location is assigned.
type: string
title: A parent collection of Contents
type: object
filename_v1alpha1CreateContentGroupRequest:
properties:
data:
$ref: '#/components/schemas/filename_v1alpha1ContentGroup'
type: object
filename_protobufAny:
properties:
type_url:
type: string
value:
format: byte
pattern: ^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
type: string
type: object
filename_v1alpha1CreateContentRequest:
properties:
# --- truncated at 32 KB (48 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/pryon/refs/heads/main/openapi/pryon-content-service-api-openapi.yml