Public API reference for Vampelium System Service
The Vampelium System Service provides two main API endpoints for authentication and database operations. These APIs can be integrated into other platforms to extend the functionality of Vampelium.
TEST_APP_a1b2c3d4- e5f6-7890-1234-567890abcdef
Base URL: /system/api/v1/vampauth
The authentication API handles user authentication and session management.
Base URL: /system/api/v1/vampdatabase
The database API provides access to the Vampelium database for storing and retrieving data.
Authenticate a user and get a session token
{
"username": "string",
"password": "string"
}{
"token": "string"
}Validate a session token
Authorization: Bearer <token>
{
"valid": boolean
}Log out and invalidate a session token
Authorization: Bearer <token>
{
"success": boolean
}Get collections or data from a collection
Authorization: Bearer <token>
collection: string (optional) [key]: string (optional, for filtering)
// Without collection parameter
{
"collections": string[],
"stats": {
"collections": number,
"records": number,
"collectionStats": {
[collection: string]: number
}
}
}
// With collection parameter
{
"collection": string,
"data": any[]
}Create a collection or insert data into a collection
Authorization: Bearer <token> Content-Type: application/json
{
"collection": string,
"data": any (optional)
}{
"success": boolean,
"id": string (if data was provided),
"message": string
}Update data in a collection
Authorization: Bearer <token> Content-Type: application/json
{
"collection": string,
"query": object,
"update": object
}{
"success": boolean,
"updatedCount": number,
"message": string
}Delete data from a collection
Authorization: Bearer <token> Content-Type: application/json
{
"collection": string,
"query": object
}{
"success": boolean,
"deletedCount": number,
"message": string
}For more information or support, contact the system administrator.