Resource Usage Logs
Add new resource usage log using type and amount.
Authorizations
Body
typestring · enumRequiredExample:
The type of resource consumed
OPENAI_TOKENS
Possible values: amountnumberRequiredExample:
The amount of resource consumed.
4567
Responses
201
Successfully add resource usage log.
403
Invalid API key or secret key. Ensure that you are using a valid authentication key.
application/json
500
Unexpected error occurred while processing the request. Please try again later.
application/json
post
POST /external/resource-usage HTTP/1.1
Host: api.raia2.com
Agent-Secret-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"type": "OPENAI_TOKENS",
"amount": 4567
}
No content