openapi: 3.2.0 info: title: Contracts Conversation Thread API version: v1 description: Provides endpoints for managing conversation threads. servers: - url: https://rls.congacloud.com - url: https://preview-rls09.congacloud.com security: - bearerAuth: [] tags: - name: Conversation Thread description: Provides endpoints for managing conversation threads. paths: /api/clm/v1/conversation-threads/query: post: tags: - Conversation Thread summary: Get thread records description: Returns thread records matching the query request. requestBody: description: Query parameters to get thread records content: application/json: schema: $ref: '#/components/schemas/CustomQueryBase' responses: '200': description: Returns thread records that match the query content: application/json: schema: $ref: '#/components/schemas/ConversationThreadResponseQueryResponseAPIResponse' example: Success: true Data: RecordCount: 1 Data: - Id: 0c4dadb2-a7ee-4672-bfa3-3c9ee2ac85d1 Name: Demo Subject ObjectType: Agreement ObjectId: 0474fc7a-5914-4059-a412-e88afb581b7a CreatedBy: Id: d717a075-9cbf-480c-b230-837e0e6dee75 Name: user CreatedDate: '2023-01-16T11:59:24' ModifiedBy: Id: d717a075-9cbf-480c-b230-837e0e6dee75 Name: user ModifiedDate: '2023-01-16T11:59:24' NextCursor: null StatusCode: OK Warnings: null Errors: null '400': description: Provided query is invalid. content: application/json: schema: $ref: '#/components/schemas/APIResponseError' example: Success: false Data: null Warnings: null Errors: - Id: null Message: Error Message '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/APIResponseError' example: Success: false Data: null Warnings: null Errors: - Id: null Message: Internal server error occurred. Please contact admin. components: schemas: APIResponseError: type: object properties: Success: type: boolean description: The state of the API response Data: type: - string - 'null' description: Generic data to return Warnings: type: - array - 'null' items: $ref: '#/components/schemas/WarningDetail' description: Warning detail list for non-blocking issues Errors: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' description: Error detail list in case of failure additionalProperties: false description: API Response Error Class CustomQueryBase: type: object properties: Limit: type: - integer - 'null' description: Number of the records to be fetched format: int32 Skip: type: - integer - 'null' description: Number of the records to be skipped format: int32 SortInfo: $ref: '#/components/schemas/SortInfo' CriteriaExpression: type: - string - 'null' description: Criteria Expression to filter the records additionalProperties: false description: Base Class for Custom Query ConversationThreadResponse: type: object properties: Id: type: - string - 'null' description: The unique identifier of the conversation thread. Name: type: - string - 'null' description: The name of the conversation thread. ObjectType: type: - string - 'null' description: The type of the object the thread is linked to (e.g., "Agreement", "ContractRequest"). ObjectId: type: - string - 'null' description: The ID of the object the thread is linked to. CreatedBy: $ref: '#/components/schemas/LookupObject' CreatedDate: type: string description: The date and time when the thread was created. format: date-time ModifiedBy: $ref: '#/components/schemas/LookupObject' ModifiedDate: type: string description: The date and time when the thread was last modified. format: date-time additionalProperties: false description: Response DTO for a conversation thread. LookupObject: type: object properties: Id: type: - string - 'null' Name: type: - string - 'null' additionalProperties: false ConversationThreadResponseQueryResponseAPIResponse: type: object properties: Success: type: boolean description: The state of the API response Data: $ref: '#/components/schemas/ConversationThreadResponseQueryResponse' Warnings: type: - array - 'null' items: $ref: '#/components/schemas/WarningDetail' description: Warning detail list for non-blocking issues Errors: type: - array - 'null' items: $ref: '#/components/schemas/ErrorDetail' description: Error detail list in case of failure additionalProperties: false description: API Response Class WarningDetail: type: object properties: Code: type: - string - 'null' description: Warning code Message: type: - string - 'null' description: Warning message additionalProperties: false description: Warning detail class for non-blocking issues ErrorDetail: type: object properties: Id: type: - string - 'null' description: Error ID Message: type: - string - 'null' description: Error message additionalProperties: false description: Error detail class SortDirection: enum: - Ascending - Descending type: string ConversationThreadResponseQueryResponse: type: object properties: StatusCode: $ref: '#/components/schemas/HttpStatusCode' RecordCount: type: - integer - 'null' format: int64 Data: type: - array - 'null' items: $ref: '#/components/schemas/ConversationThreadResponse' HasMoreRecords: type: - boolean - 'null' NextCursor: type: - string - 'null' additionalProperties: false SortInfo: type: object properties: FieldName: type: - string - 'null' description: Field name on which records will be sorted Direction: $ref: '#/components/schemas/SortDirection' additionalProperties: false description: Sorting Information for Fields HttpStatusCode: enum: - Continue - SwitchingProtocols - Processing - EarlyHints - OK - Created - Accepted - NonAuthoritativeInformation - NoContent - ResetContent - PartialContent - MultiStatus - AlreadyReported - IMUsed - MultipleChoices - MovedPermanently - Found - SeeOther - NotModified - UseProxy - Unused - TemporaryRedirect - PermanentRedirect - BadRequest - Unauthorized - PaymentRequired - Forbidden - NotFound - MethodNotAllowed - NotAcceptable - ProxyAuthenticationRequired - RequestTimeout - Conflict - Gone - LengthRequired - PreconditionFailed - RequestEntityTooLarge - RequestUriTooLong - UnsupportedMediaType - RequestedRangeNotSatisfiable - ExpectationFailed - MisdirectedRequest - UnprocessableEntity - Locked - FailedDependency - UpgradeRequired - PreconditionRequired - TooManyRequests - RequestHeaderFieldsTooLarge - UnavailableForLegalReasons - InternalServerError - NotImplemented - BadGateway - ServiceUnavailable - GatewayTimeout - HttpVersionNotSupported - VariantAlsoNegotiates - InsufficientStorage - LoopDetected - NotExtended - NetworkAuthenticationRequired type: string securitySchemes: bearerAuth: type: http scheme: bearer bearerFormat: JWT