curl -X POST https://api.valmi.io/v1/actions \
-H "Authorization: Bearer sk_api_abc123xyz" \
-H "Content-Type: application/json" \
-d '{
"agent_key": "agent_abc123xyz",
"action_type": "llm_call",
"metadata": {
"model": "gpt-4",
"input_tokens": 1000,
"output_tokens": 500
}
}'
{
"id": "action_xyz789",
"status": "processed",
"created_at": "2024-01-15T10:30:00Z"
}
Endpoints
Metering Events
Send actions and outcomes via API
curl -X POST https://api.valmi.io/v1/actions \
-H "Authorization: Bearer sk_api_abc123xyz" \
-H "Content-Type: application/json" \
-d '{
"agent_key": "agent_abc123xyz",
"action_type": "llm_call",
"metadata": {
"model": "gpt-4",
"input_tokens": 1000,
"output_tokens": 500
}
}'
{
"id": "action_xyz789",
"status": "processed",
"created_at": "2024-01-15T10:30:00Z"
}