Leaf uses API owner settings as the runtime defaults for Leaf users. The public
GET /configs/{leafUserId} endpoint, however, returns only the stored custom configuration for that Leaf user. If no Leaf-user-specific config exists, that endpoint returns 404.Base URL
Endpoints
Common configuration properties
This table lists common properties only. The full response object includes many more configuration fields.
Get API owner’s configuration
GET /configs
Returns the configuration for your API owner account.
Request
Response
Get Leaf user’s configuration
GET /configs/{leafUserId}
Returns the stored custom configuration for a specific Leaf user. If the Leaf user has no custom configuration, this endpoint returns 404.
Path parameters
Request
Response
Create Leaf user’s configuration
POST /configs/{leafUserId}
Creates a custom configuration for a Leaf user. Include only the properties you want to override. Omitted properties remain unset on the stored Leaf-user config and continue to resolve from the API owner at runtime.
Path parameters
Request body
All fields are optional. Only include the properties you want to set.Request
Response
The response includes the stored Leaf-user configuration object. Omitted properties are not filled in with inherited values in this response.Update API owner’s configuration
PATCH /configs
Updates specific fields of the API owner’s configuration. Only include the properties you want to change.
Request body
All fields are optional.Request
Response
Update Leaf user’s configuration
PATCH /configs/{leafUserId}
Updates specific fields of a Leaf user’s configuration. Only include the properties you want to change.
Path parameters
Request body
All fields are optional.Request
Response
The response includes the stored Leaf-user configuration object after the update. Omitted properties are not filled in with inherited values in this response.Delete Leaf user’s configuration
DELETE /configs/{leafUserId}
Deletes the custom configuration for a Leaf user. After deletion, the Leaf user inherits all settings from the API owner.

