Autumn's V2 API is live in beta. We recommend using this version.
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
user_email: 'jsmith@example.com',
name: '<string>',
slug: '<string>',
env: 'both'
})
};
fetch('https://api.useautumn.com/v1/platform/organizations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"test_secret_key": "<string>",
"live_secret_key": "<string>"
}Creates a new organization for a platform tenant. Reuses existing users and organizations if they already exist.
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
user_email: 'jsmith@example.com',
name: '<string>',
slug: '<string>',
env: 'both'
})
};
fetch('https://api.useautumn.com/v1/platform/organizations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"test_secret_key": "<string>",
"live_secret_key": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs-v1.useautumn.com/llms.txt
Use this file to discover all available pages before exploring further.
Autumn API key with Bearer prefix
Email address of the organization owner. User will be created if it doesn't exist.
Display name for the organization.
Unique slug for the organization.
Environment(s) to create API keys for.
test, live, both