List alias and confirmation activity
curl -X GET "https://mail.haltman.io/api/activity?limit=42&offset=42" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY"
import requests
import json
url = "https://mail.haltman.io/api/activity?limit=42&offset=42"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://mail.haltman.io/api/activity?limit=42&offset=42", {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://mail.haltman.io/api/activity?limit=42&offset=42", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://mail.haltman.io/api/activity?limit=42&offset=42')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"items": [
{
"type": "example_string",
"occurred_at": "2024-12-25T10:00:00Z",
"route": "example_string",
"intent": "example_string",
"alias": "example_string"
}
],
"pagination": {
"limit": 42,
"offset": 42
}
}
{
"error": "example_string",
"field": "example_string",
"reason": "example_string",
"hint": "example_string",
"constraints": {}
}
{
"error": "example_string"
}
{
"error": "Unauthorized",
"message": "Authentication required. Please provide a valid API token",
"code": 401
}
{
"error": "example_string",
"where": "example_string",
"reason": "example_string"
}
{
"error": "Internal Server Error",
"message": "An unexpected error occurred on the server",
"code": 500,
"requestId": "req_1234567890"
}
GET
/api/activity
GET
API Key (header: X-API-Key)
X-API-Keystring
Required64-character lowercase hexadecimal API key.
64-character lowercase hexadecimal API key.
query
limitinteger
Page size. Default 50, maximum 200.
Min: 1 • Max: 200
query
offsetinteger
Zero-based page offset.
Min: 0
Request Preview
Response
Response will appear here after sending the request
Authentication
header
X-API-Keystring
RequiredAPI Key for authentication. 64-character lowercase hexadecimal API key.
Query Parameters
limitinteger
Page size. Default 50, maximum 200.
offsetinteger
Zero-based page offset.
Responses
itemsarray
Requiredpaginationobject
RequiredWas this page helpful?
Last updated 2 days ago
Built with Documentation.AI