๐Ÿ”’
Conserver.io
  • ๐Ÿ‘‹Welcome to the Home of the vCons
  • vCons
    • ๐Ÿ’ฌA vCon Primer
    • ๐ŸŒŽvCons are...
    • ๐Ÿง Why vCons?
    • ๐Ÿ’กConcepts
    • โœจMore Information
  • vCon Library
    • ๐ŸฐQuickstart
    • Library API
    • Cheat Sheet
    • GitHub Repo
  • Conserver
    • ๐Ÿš€Conserver Introduction
    • ๐ŸฐConserver Quick Start
    • Configuring the Conserver
    • ๐ŸซConcepts
    • โค๏ธInside the Conserver
    • ๐Ÿ”—Standard Links
    • ๐Ÿ—„๏ธStorage
    • ๐Ÿ“†Day In the Life of a vCon
    • ๐ŸงฉAPI
    • ๐Ÿ”ŒIntegrating Your App
    • GitHub Repo
  • Tools
    • vCon Faker
    • vCon Admin
    • Mongo Redis Sync
  • vCon Apps and Stores
    • TADHack vCon
    • vCon Stores and Apps
    • vCon App Template
  • Deep Dives
    • GitHub Repo
    • vCon IETF Working Group
  • HELPS and HACKS
    • Coding Prompt Cheat Sheet
    • Fake vCons
  • Use Cases / Studies
    • Overview
    • Service Provider Migration
    • Speech Recognition Test Set
    • AI Integration
    • PII Compliance
    • Customer Experience Improvement
    • Sharing Conversations with Third Parties
    • Verbal Agreements - Converted to Writing
    • Authenticating and Certifying Conversations
    • Insights from Customer Conversations
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
Export as PDF
  1. Conserver

API

PreviousDay In the Life of a vConNextIntegrating Your App

Last updated 10 months ago

Was this helpful?

Introduction

Authorization

The Conserver API provides a token based authentication, controlled by the environment variable CONSERVER_API_TOKEN in the environment. When not defined or empty, it is disabled. To enable, define CONSERVER_API_TOKEN in the .env file

vCon Management

Chain Management

Chains are series of links that process a vCon. Before processing a vCon, be sure to load it.

Configuration

Dead Letter Queue

Lifecyle

๐Ÿงฉ

Gets a list of vCon UUIDs

get

Enables pagination of vCon UUIDs. Use the page and size parameters to paginate the results. Can also filter by date with the since and until parameters.

Query parameters
pageintegerOptionalDefault: 1
sizeintegerOptionalDefault: 50
sincestring ยท date-timeOptional
untilstring ยท date-timeOptional
Responses
200
Successful Response
application/json
Responsestring[]
422
Validation Error
application/json
get
GET /vcon HTTP/1.1
Host: 
Accept: */*
[
  "text"
]

Gets a particular vCon by UUID

get

How to get a particular vCon by UUID

Path parameters
vcon_uuidstring ยท uuidRequired
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
GET /vcon/{vcon_uuid} HTTP/1.1
Host: 
Accept: */*
{
  "vcon": "text",
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": 1,
  "subject": "text",
  "redacted": {},
  "appended": {},
  "group": [
    {}
  ],
  "parties": [
    {}
  ],
  "dialog": [
    {}
  ],
  "analysis": [
    {}
  ],
  "attachments": [
    {}
  ],
  "meta": {}
}

Deletes a particular vCon by UUID

delete

How to remove a vCon from the conserver.

Path parameters
vcon_uuidstring ยท uuidRequired
Responses
204
Successful Response
422
Validation Error
application/json
delete
DELETE /vcon/{vcon_uuid} HTTP/1.1
Host: 
Accept: */*

No content

Removes one or more vCon UUIDs from the output of a chain (egress)

get

Removes one or more vCon UUIDs from the output of a chain (egress)

Query parameters
egress_liststringRequired
limitanyOptionalDefault: 1
Responses
204
Successful Response
422
Validation Error
application/json
get
GET /vcon/egress?egress_list=text HTTP/1.1
Host: 
Accept: */*

No content

Returns the number of vCons at the end of a chain

get

Returns the number of vCons at the end of a chain.

Query parameters
egress_liststringRequired
Responses
204
Successful Response
422
Validation Error
application/json
get
GET /vcon/count?egress_list=text HTTP/1.1
Host: 
Accept: */*

No content

Returns the config file for the conserver

get

Returns the config file for the conserver

Responses
200
Successful Response
application/json
Responseany
get
GET /config HTTP/1.1
Host: 
Accept: */*
200

Successful Response

No content

Clears the config file for the conserver

delete

Clears the config file for the conserver

Responses
204
Successful Response
delete
DELETE /config HTTP/1.1
Host: 
Accept: */*
204

Successful Response

No content

Reprocess the dead letter queue

post

Move the dead letter queue vcons back to the ingress chain

Query parameters
ingress_liststringRequired
Responses
200
Successful Response
application/json
Responseany
422
Validation Error
application/json
post
POST /dlq/reprocess?ingress_list=text HTTP/1.1
Host: 
Accept: */*

No content

Get Vcons list from the dead letter queue

get

Get Vcons list from the dead letter queue, returns array of vcons.

Query parameters
ingress_liststringRequired
Responses
200
Successful Response
application/json
Responseany
422
Validation Error
application/json
get
GET /dlq?ingress_list=text HTTP/1.1
Host: 
Accept: */*

No content

Forces a reset of the vcon search list

get

Forces a reset of the vcon search list, returns the number of vCons indexed.

Responses
200
Successful Response
application/json
Responseany
get
GET /index_vcons HTTP/1.1
Host: 
Accept: */*
200

Successful Response

No content

Inserts a vCon into the database

post

How to insert a vCon into the database.

Body
vconstringRequired
uuidstring ยท uuidRequired
created_atany ofRequired
integerOptional
or
stringOptional
or
string ยท date-timeOptional
subjectany ofOptional
stringOptional
or
nullOptional
redactedobject ยท RedactedOptionalDefault: {}
appendedany ofOptional
objectOptional
or
nullOptional
groupobject[]OptionalDefault: []
partiesobject[]OptionalDefault: []
dialogobject[]OptionalDefault: []
analysisobject[]OptionalDefault: []
attachmentsobject[]OptionalDefault: []
metaany ofOptionalDefault: {}
objectOptional
or
nullOptional
Responses
200
Successful Response
application/json
422
Validation Error
application/json
post
POST /vcon HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 208

{
  "vcon": "text",
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": 1,
  "subject": "text",
  "redacted": {},
  "appended": {},
  "group": [
    {}
  ],
  "parties": [
    {}
  ],
  "dialog": [
    {}
  ],
  "analysis": [
    {}
  ],
  "attachments": [
    {}
  ],
  "meta": {}
}
{
  "vcon": "text",
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": 1,
  "subject": "text",
  "redacted": {},
  "appended": {},
  "group": [
    {}
  ],
  "parties": [
    {}
  ],
  "dialog": [
    {}
  ],
  "analysis": [
    {}
  ],
  "attachments": [
    {}
  ],
  "meta": {}
}

Inserts a vCon UUID into one or more chains

post

Inserts a vCon UUID into one or more chains.

Query parameters
ingress_liststringRequired
Body
string[]Optional
Responses
204
Successful Response
422
Validation Error
application/json
post
POST /vcon/ingress?ingress_list=text HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 8

[
  "text"
]

No content

Updates the config file for the conserver

post

Updates the config file for the conserver

Query parameters
update_file_nameanyOptional
Body
object ยท ConfigOptional
Responses
204
Successful Response
422
Validation Error
application/json
post
POST /config HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 2

{}

No content

Search vCons based on various parameters

get

Search for vCons using personal identifiers and metadata.

Query parameters
telany ofOptional

Phone number to search for

stringOptional
or
nullOptional
mailtoany ofOptional

Email address to search for

stringOptional
or
nullOptional
nameany ofOptional

Name of the party to search for

stringOptional
or
nullOptional
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
GET /vcons/search HTTP/1.1
Host: 
Accept: */*
[
  {
    "uuid": "text",
    "created_at": "2025-06-17T04:46:07.095Z",
    "updated_at": "2025-06-17T04:46:07.095Z",
    "subject": "text",
    "parties": [
      {}
    ]
  }
]
  • Introduction
  • Authorization
  • vCon Management
  • GETGets a list of vCon UUIDs
  • POSTInserts a vCon into the database
  • GETGets a particular vCon by UUID
  • DELETEDeletes a particular vCon by UUID
  • GETSearch vCons based on various parameters
  • Chain Management
  • POSTInserts a vCon UUID into one or more chains
  • GETRemoves one or more vCon UUIDs from the output of a chain (egress)
  • GETReturns the number of vCons at the end of a chain
  • Configuration
  • GETReturns the config file for the conserver
  • POSTUpdates the config file for the conserver
  • DELETEClears the config file for the conserver
  • Dead Letter Queue
  • POSTReprocess the dead letter queue
  • GETGet Vcons list from the dead letter queue
  • Lifecyle
  • GETForces a reset of the vcon search list