User creation
User creation endpoint allows you to create users and keep track of their usage/budget/limits.
Make sure to replace YOUR_KEYWORDSAI_API_KEY
with your actual Keywords AI API key.
The unique identifier for the user.
User’s name.
User’s email address.
The start of the budget period in ISO Format: YYYY-MM-DD
(e.g. 2024-03-09
). If not provided, the current date will be used.
This field will automatically roll over to the next period if the current date is past the end of the period.
The end of the budget period in ISO Format: YYYY-MM-DD
(e.g. 2024-03-09
). If not provided, it will be set based on the period_start
+ budget_duration
. (e.g. 2024-03-09
+ 1 month
= 2024-04-09
)
This field will automatically roll over to the next period if the current date is past the end of the period.
Type of budget duration. Possible values are daily
, weekly
, monthly
, and yearly
. The default value is monthly
.
The budget amount for the period. The default value is null
, which means no budget is set.
This allows a User’s usage to be reported more by x%. The default value is 0
.
Customized metadata for the user. Any key-value pairs can be added here.