An application like secreto.site. Anonymous message API.
Servers:
http://localhost:3000
Endpoint:
GET /api/messages
Request Header:
- X-API-Key : Key (Mandatory)
Response:
{
"code" : 200,
"status" : "OK",
"data" : [
{
"id" : "69bcd738-b4eb-4f24-a838-25a0d7351ea4",
"question" : "Hello World",
"created_at": "2023-08-05T23:11:50.749697Z"
}
]
}
Endpoint:
POST /api/messages
Request Header:
- X-API-Key : Key (Mandatory)
Request Body:
{
"question" : "Hello World"
}
Response:
{
"code" : 200,
"status" : "OK",
"data" : [
{
"id": "69bcd738-b4eb-4f24-a838-25a0d7351ea4",
"question": "Hello World"
}
]
}
Endpoint:
GET /api/messages/:messageId
Request Header:
- X-API-Key : Key (Mandatory)
Response:
{
"code" : 200,
"status" : "OK",
"data" : [
{
"id" : "69bcd738-b4eb-4f24-a838-25a0d7351ea4",
"question" : "Hello World",
"created_at": "2023-08-05T23:11:50.749697Z"
}
]
}
Endpoint:
DELETE /api/messages/:messageId
Request Header:
- X-API-Key : Key (Mandatory)
Response:
{
"code" : 200,
"status" : "OK"
}