Args:
- user: The user creating the organization
- company_organization: The company organization to add the organization to
- subscription: The subscription to add to the organization
- role: The role to add to the organization
Signals:
- post_save: Organization
- Add the free trial "seat_based_team" subscription if the organization is newly created
Request
This endpoint expects an object.
namestringRequired1-254 characters
disabled_span_behaviorslist of stringsOptional
Behavior slugs excluded from span-behavior evaluation.
warnings_settingsobject or anyOptional
custom_property_index_mappingmap from strings to strings or nullOptional
Custom property key -> indexed ClickHouse column name (e.g. custom_string_1).
created_atdatetime or nullOptional
first_api_call_atdatetime or nullOptional
last_api_call_atdatetime or nullOptional
logostring or nullOptionalformat: "binary"
digest_email_inboxeslist of stringsOptional
organization_sizeintegerOptional-2147483648-2147483647
product_use_caseslist of stringsOptional
prioritize_objectiveslist of stringsOptional
unique_organization_idstringOptional>=1 character
budget_goalstringOptional
monthly_spendingdoubleOptional
preset_modelslist of stringsOptional
preset_optionstringOptional<=70 characters
dynamic_routing_enabledbooleanOptional
fallback_model_enabledbooleanOptional
fallback_modelslist of stringsOptional
alert_settingsanyOptional
system_fallback_enabledbooleanOptional
alerts_enabledbooleanOptional
disable_logbooleanOptional
statusenumOptional
active - Active
deleting - Deleting
inactive - Inactive
stripe_customer_idstringOptional<=254 characters
has_api_callbooleanOptional
has_api_call_with_non_default_keybooleanOptional
onboarding_integration_optionsanyOptional
onboarding_keystringOptional<=50 characters
onboarding_methodenum or anyOptional
gateway_onboarding_completed_atdatetime or nullOptional
tracing_onboarding_completed_atdatetime or nullOptional
curr_onboarding_stepintegerOptional-2147483648-2147483647
onboarding_startdatetimeOptional
onboarding_enddatetime or nullOptional
enable_cachebooleanOptional
archive_durationintegerOptional-2147483648-2147483647
cache_saved_costdoubleOptional
cache_hit_countlongOptional-9223372036854776000-9223372036854776000
cache_hit_tokenslongOptional-9223372036854776000-9223372036854776000
omit_log_when_cache_hitbooleanOptional
cache_saved_timedoubleOptional
last_cache_aggregations_updatedatetimeOptional
classification_percentagedouble or nullOptional
use_custom_credentialsbooleanOptional
default_customer_user_budgetdouble or nullOptional
llm_gateway_markup_ratedoubleOptional
LLM gateway markup rate (default 0% markup). Applied when Keywords AI provides LLM credentials. Formula: credit_charge = cost * (1 + llm_gateway_markup_rate)
credit_low_balance_thresholddouble or nullOptional
Credit balance threshold (in USD) to trigger low balance warning webhook. When credit balance drops below this value, a credit_low_balance_threshold_reached webhook event is dispatched once until balance goes above threshold again.
credit_auto_top_off_thresholddouble or nullOptional
Credit balance threshold (in USD) to trigger auto top-off. When credit balance drops below this value, automatically charge credit_auto_top_off_amount via Stripe.
credit_auto_top_off_amountdouble or nullOptional
Amount (in USD) to automatically charge when credit balance drops below credit_auto_top_off_threshold. Requires stripe_customer_id with valid payment method.
is_auto_top_off_enabledbooleanOptional
Enable automatic credit top-off. When enabled and balance drops below credit_auto_top_off_threshold, automatically charges credit_auto_top_off_amount via Stripe. Requires stripe_customer_id with valid payment method.
metadata_keyslist of strings or nullOptional
custom_modelslist of strings or nullOptional
spend_capdouble or nullOptional
Spend cap amount in USD. Enforced in real-time via atomic Redis limiter.
spend_cap_warning_thresholddouble or nullOptional
Spend threshold in USD to trigger warning alert.
budget_durationenumOptional
Duration for spend_cap enforcement: daily, weekly, or monthly.
daily - daily
weekly - weekly
monthly - monthly
use_keywordsai_credentialsbooleanOptional
rate_limitdouble or nullOptional
customer_user_rate_limitdouble or nullOptional
retry_enabledbooleanOptional
retry_afterdoubleOptional
num_retriesintegerOptional-2147483648-2147483647
custom_preset_modelslist of stringsOptional
image_assetslist of stringsOptional
logs_retention_period_in_daysinteger or nullOptional-2147483648-2147483647
is_extended_retention_enabledbooleanOptional
is_custom_retention_enabledbooleanOptional
is_span_behaviors_enabledbooleanOptional
company_organizationinteger or nullOptional
curr_ownerinteger or nullOptional
Response
namestring<=254 characters
userslist of integersRead-only
disabled_span_behaviorslist of strings
Behavior slugs excluded from span-behavior evaluation.
warnings_settingsobject or any
custom_property_index_mappingmap from strings to strings or null
Custom property key -> indexed ClickHouse column name (e.g. custom_string_1).
created_atdatetime or null
first_api_call_atdatetime or null
last_api_call_atdatetime or null
logostring or nullformat: "uri"
digest_email_inboxeslist of strings
organization_sizeinteger-2147483648-2147483647
product_use_caseslist of strings
prioritize_objectiveslist of strings
unique_organization_idstring
preset_modelslist of strings
preset_optionstring<=70 characters
dynamic_routing_enabledboolean
fallback_model_enabledboolean
fallback_modelslist of strings
system_fallback_enabledboolean
statusenum
active - Active
deleting - Deleting
inactive - Inactive
stripe_customer_idstring<=254 characters
has_api_call_with_non_default_keyboolean
onboarding_integration_optionsany
onboarding_keystring<=50 characters
onboarding_methodenum or any
gateway_onboarding_completed_atdatetime or null
tracing_onboarding_completed_atdatetime or null
curr_onboarding_stepinteger-2147483648-2147483647
onboarding_enddatetime or null
archive_durationinteger-2147483648-2147483647
cache_hit_countlong-9223372036854776000-9223372036854776000
cache_hit_tokenslong-9223372036854776000-9223372036854776000
omit_log_when_cache_hitboolean
last_cache_aggregations_updatedatetime
classification_percentagedouble or null
use_custom_credentialsboolean
default_customer_user_budgetdouble or null
llm_gateway_markup_ratedouble
LLM gateway markup rate (default 0% markup). Applied when Keywords AI provides LLM credentials. Formula: credit_charge = cost * (1 + llm_gateway_markup_rate)
credit_low_balance_thresholddouble or null
Credit balance threshold (in USD) to trigger low balance warning webhook. When credit balance drops below this value, a credit_low_balance_threshold_reached webhook event is dispatched once until balance goes above threshold again.
credit_auto_top_off_thresholddouble or null
Credit balance threshold (in USD) to trigger auto top-off. When credit balance drops below this value, automatically charge credit_auto_top_off_amount via Stripe.
credit_auto_top_off_amountdouble or null
Amount (in USD) to automatically charge when credit balance drops below credit_auto_top_off_threshold. Requires stripe_customer_id with valid payment method.
is_auto_top_off_enabledboolean
Enable automatic credit top-off. When enabled and balance drops below credit_auto_top_off_threshold, automatically charges credit_auto_top_off_amount via Stripe. Requires stripe_customer_id with valid payment method.
metadata_keyslist of strings or null
custom_modelslist of strings or null
spend_capdouble or null
Spend cap amount in USD. Enforced in real-time via atomic Redis limiter.
spend_cap_warning_thresholddouble or null
Spend threshold in USD to trigger warning alert.
budget_durationenum
Duration for spend_cap enforcement: daily, weekly, or monthly.
daily - daily
weekly - weekly
monthly - monthly
use_keywordsai_credentialsboolean
customer_user_rate_limitdouble or null
num_retriesinteger-2147483648-2147483647
custom_preset_modelslist of strings
image_assetslist of strings
logs_retention_period_in_daysinteger or null-2147483648-2147483647
is_extended_retention_enabledboolean
is_custom_retention_enabledboolean
is_span_behaviors_enabledboolean
company_organizationinteger or null
curr_ownerinteger or null