Create a resource
curl --request POST \
--url https://aquila.attaxr.com/api/events \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"userId": "<string>",
"subject": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({userId: '<string>', subject: '<string>'})
};
fetch('https://aquila.attaxr.com/api/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/events"
payload = {
"userId": "<string>",
"subject": "<string>"
}
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"userId": "<string>",
"subject": "<string>",
"data": {},
"source": "unknown",
"createdAt": "<unknown>",
"updatedAt": "<unknown>",
"_id": "<string>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Events
Create a resource
Creates a row owned by the calling user; userId is injected server-side and never taken from the body.
POST
/
api
/
events
Create a resource
curl --request POST \
--url https://aquila.attaxr.com/api/events \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"userId": "<string>",
"subject": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({userId: '<string>', subject: '<string>'})
};
fetch('https://aquila.attaxr.com/api/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/events"
payload = {
"userId": "<string>",
"subject": "<string>"
}
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"userId": "<string>",
"subject": "<string>",
"data": {},
"source": "unknown",
"createdAt": "<unknown>",
"updatedAt": "<unknown>",
"_id": "<string>"
}{
"error": "<string>",
"details": "<unknown>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
apiKeyCookieapiKeyHeaderbearerAuth
Browser session cookie set by Better Auth sign-in.
Body
application/json

