API Endpoints
Submit logs to the ingester
Submits HTTP logs to the ingester
POST
/
v1
/
messages
Authorization
Body
curl --request POST \
--url https://api.otito.dev/v1/messages \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"created_at": 123,
"ip_address": "<string>",
"method": "<string>",
"path": "<string>",
"request": {
"body": "<string>",
"header": {}
},
"response": {
"status_code": 123,
"body": "<string>",
"header": {}
}
}'
{
"status": true,
"messages": "Logs were successfully ingested and should show up in a minute"
}
Body
name
string
Name of the application
created_at
integer
Unix timestamp
ip_address
string
Optional - The IP address of the user
method
string
The HTTP request method. GET/POST and others
path
string
The HTTP request path such as “/v1/auth/user”.
request
object
response
object
Response
status
boolean
Indicates whether the api call was successful.
message
string
Generic api response text
curl --request POST \
--url https://api.otito.dev/v1/messages \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"created_at": 123,
"ip_address": "<string>",
"method": "<string>",
"path": "<string>",
"request": {
"body": "<string>",
"header": {}
},
"response": {
"status_code": 123,
"body": "<string>",
"header": {}
}
}'
{
"status": true,
"messages": "Logs were successfully ingested and should show up in a minute"
}