Download OpenAPI specification:Download
Aiven is a modern fully-managed open source data platform for streaming, storing, and analyzing data on any public cloud. On Aiven Platform, you can operate your data infrastructure with a few devops tools: Aiven Console, Aiven Terraform Provider, Aiven CLI, and Aiven Operator for Kubernetes. All of them are built on an open secure powerful REST API for integration with custom tooling.
The Aiven REST API
provides programmatic access to Aiven.io services. To call the Aiven API, you can use either CLI tools (for example, cURL
or Aiven CLI client) or GUI tools, such as the Aiven public API Postman collection.
This Aiven API documentation will help you operate your Aiven organization, projects, or services programmatically by integrating your applications and processes with Aiven.
Aiven's APIs (Application Programming Interfaces) power its platform for data management. Aiven has a number of REST APIs that can help you build strong and robust data infrastructure for your applications.
The Aiven API is organized around core resources. Each core resource has multiple endpoints, which can be interacted with using different HTTP methods.
There are multiple ways you can interact with the Aiven API over HTTP. You can access it by sending requests from a client (for example, a web browser) to the Aiven's server. In this API reference, you'll find code examples of how to do that using cURL
and a few different client libraries (programming languages).
To send an API request, you need to specify the following:
HTTP method
Path
Request headers
Typically, content-type
needs to be set to application/json
: content-type: application/json
. There are a few exceptions though.
Path, query, or body parameters (either required or optional).
curl --request POST \
--url https://api.aiven.io/v1/project/{project}/vpcs \
--header 'Authorization: aivenv1 REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--data
'{
"cloud_name": "string",
"network_cidr": "string",
"peering_connections": [
{
"peer_azure_app_id": "string",
"peer_azure_tenant_id": "string",
"peer_cloud_account": "string",
"peer_region": "string",
"peer_resource_group": "string",
"peer_vpc": "string",
"user_peer_network_cidrs": [
"string"
]
}
]
}'
Upon receiving and processing a request, the Aiven API returns the response status code, response headers, and a response body in the JSON
format. Response bodies include different properties, which can be either required or optional, for example, the message
property, which is an optional human-readable information on the result of the action (deleted, created, or updated).
{
"cloud_name": "string",
"create_time": "string",
"message": "string",
"network_cidr": "string",
"peering_connections": [
{ ... }
],
"pending_build_only_peering_connections": "string",
"project_vpc_id": "string",
"state": "ACTIVE",
"update_time": "string"
}
A successful API response returns an HTTP result code between 200 and 299.
Example of the created
response
{
"service": {
"service_name": "foobar",
...
}
}
A failed API response returns a HTTP code greater or equal to 400. Additionally, the response may return a list of errors in the response body as JSON, for example
{
"errors": [
{
"error_code": "authentication_failed",
"message": "Authentication failed",
"status": 403,
"metadata": {
...
}
}
],
"message": "Authentication failed"
}
For information on errors' properties and error codes, check Errors.
Check out how to start using the Aiven API either in API quick start or Your first API call.
Header should be of the format authorization: aivenv1 <TOKEN>
. Tokens can be obtained from your Aiven profile page
bearer
OAuth2 security scheme
authorizationCode
https://console.aiven.io/oauth/authorize
https://api.aiven.io/v1/oauth2/token
all
- Provide full access to the API
accounts
- Allow enumerating and reading accounts configuration
accounts:read
- Allow modifying account configuration
accounts:write
- Provides full access to authentication related API
authentication
- Provides full access to authentication related API
authentication:read
- Allow reading authentication related configuration on resources (user profile, accounts)
authentication:write
- Allow modifying authentication related configurations on resources (user profile, accounts)
billing
- Provide full access to billing APIs
billing:read
- Allow reading billing information and configuration
billing:write
- Allow writing billing configuration
payments
- Provide full access to payment method APIs
payments:read
- Allow reading the payment method configurations
payments:write
- Allows writing payment method configuration
privatelink
- Provide full access to private link APIs
privatelink:read
- Allow enumerating and reading private link items and configurations
privatelink:write
- Allow writing (creating, modifying, deleting) private link items
projects
- Provide full access to projects APIs
projects:read
- Allow enumerating projects and reading their configuration
projects:write
- Allow writing (creating, modifying, deleting) projects
scim
- Provide full access to SCIM operations
scim:read
- Allow reading SCIM endpoints
scim:write
- Allow writing (modifying) SCIM endpoints
services
- Provide full access to services APIs
services:read
- Allow enumerating services and reading their configuration
services:write
- Allow writing (creating, modifying, deleting) services
static_ips
- Provide full access to static IPs APIs
static_ips:read
- Allow enumerating and reading static IP items and configurations
static_ips:write
- Allow writing (creating, modifying, deleting) static IP items
tickets
- Provide full access to support ticket APIs
tickets:read
- Allow enumerating and reading support tickets
tickets:write
- Allow writing (creating, modifying) support tickets
user
- Provide full access to user profile APIs
user:read
- Allow reading user profile and configuration
user:write
- Allow writing (modifying) user profile and configuration
When working with the Aiven API, you may encounter different error responses when you attempt to perform operations that can fail. For example, trying to enable writes for a database that has been powered off would lead to the following error response:
{
"errors": [
{
"error_code": "not_powered",
"message": "Database not powered on",
"status": 409
}
],
"message": "Database not powered on"
}
If a request fails with a HTTP code greater or equal to 400, it returns a list of errors in the response body as JSON. errors
objects are embedded in the failed API responses.
{
"errors": [
{
"error_code": "account_not_found",
"message": "Account does not exist",
"status": 404
}
],
"message": "Account does not exist"
}
In an API response, one or more errors may be included in the errors
array of objects. Each error object may contain a few properties:
status
(required) is an HTTP error code, which can be used to programmatically identify the error type.
200
<= status
< 300
means a successful request.300
<= status
<= 500
means a failed request.errors
can have the following HTTPS status codes:
message
(required) is human-readable information on the error.
error_code
is a machine-readable information on the error (see Error codes).
Machine-readable error_code
fields are progressively added to Aiven endpoints to allow you to identify different failure cases programmatically. Currently, the supported values are the following:
account_already_exists
account_already_has_organization
account_and_project_do_not_match
account_and_project_must_belong_same_tenant
account_cannot_be_own_ancestor
account_must_have_enabled_authentication_method
account_not_found
account_team_not_found
account_unit_cannot_create_for_personal_tier
account_unit_cannot_have_billing_group
account_with_child_accounts_cannot_be_deleted
account_with_projects_cannot_be_deleted
action_forbidden_for_application_users
action_forbidden_for_managed_users
action_forbidden_for_marketplace_users
action_forbidden_for_scim_users
action_forbidden_for_timescale_users
action_forbidden_missing_governance_usergroup
action_forbidden_on_application_users
action_forbidden_on_topic_request
action_forbidden_on_unmanaged_users
address_already_belongs_to_organization
address_in_use
address_must_belong_to_organization
address_not_found
approval_forbidden_on_topic_request
approval_missing_on_request
auth_token_max_age_too_low
authentication_method_disable_current_not_allowed
authentication_method_does_not_allow_auto_join_user_group
authentication_method_limit_reached
authentication_method_not_found
backup_failed
billing_address_not_found
billing_group_not_found
billing_group_organization_active_trial
billing_group_owning_account_must_be_organization
ca_version_not_in_sequence
cannot_delete_active_managed_users
cannot_delete_users_with_organizations_memberships
cannot_move_project_not_assigned_to_organization
cannot_remove_managed_users_from_organization
cannot_set_groups_managed_by_scim_as_auto_join_group
credit_card_not_found
custom_cloud_environment_internal
custom_cloud_environment_not_found
decline_forbidden_on_topic_request
deleting_forbidden_on_topic_request
discount_not_found
feature_not_enabled
free_trial_extensions_not_available
free_trial_max_extended
free_trial_not_active
free_trial_not_available
governance_configuration_already_exists
governance_configuration_not_found
governance_group_not_found
governance_invalid_service_type
idp_no_domains_linked
internal_server_error
invalid_currency_code
invalid_date_format
invalid_governance_group_provided
invalid_kafka_topic_request_type
invalid_os_migration_command
invalid_owner_user_group
invalid_scim_user_state_update
invalid_service_type
invitation_expired
invitation_not_found
kafka_acl_not_supported
kafka_console_governance_enabled
kafka_governance_not_available
kafka_governance_not_enabled
kafka_governance_policy_incomplete
kafka_partition_reassignment_in_progress
kafka_service_unavailable
kafka_topic_already_exists
kafka_topic_invalid_config
kafka_topic_not_found
kafka_topic_queued_for_deletion
kafka_topic_reserved
marketplace_aws_customer_or_product_details_not_found
marketplace_subscription_already_linked_to_organization
marketplace_subscription_link_expired
marketplace_subscription_no_access
metadata_validation_failed
mfa_required_by_organization
mp_account_with_active_subscription_deleted
mp_account_with_commitment_deleted
mp_account_with_support_contract_deleted
mp_subscription_not_found
nested_account_cannot_have_authentication_method
nested_account_cannot_have_user_groups
no_failed_os_migration
node_prune_version_not_updated
not_powered
optimization_failed
optimization_not_found
organization_aiven_enterprise_contract_denied
organization_aiven_enterprise_contract_feature_denied
organization_aiven_enterprise_denied
organization_aiven_enterprise_organization_required
organization_cannot_exist_without_root_account
organization_domain_already_linked
organization_domain_not_found
organization_domain_not_root
organization_domain_verification_failed
organization_kafka_topics_invalid_filters
organization_mismatch
organization_must_have_one_super_admin
organization_not_found
organization_pending_support_contract_already_exists
organization_support_contract_tier_not_supported
organization_tier_downgrade_not_allowed
organization_user_not_found
orphaned_project_not_allowed
parent_account_cannot_be_own_ancestor
parent_account_not_found
parent_account_tenant_invalid
parent_account_too_deep
permission_denied
pg_publication_not_found
pg_replication_slot_not_found
project_account_not_active
project_already_exists
project_belongs_to_account_billing_group_must_use_api
project_does_not_exist
project_has_no_such_user
project_limitation_not_found
project_move_invalid
project_move_organizations_internal_config_not_match
project_not_found
project_without_billing_group_must_be_assigned_from_account
query_validation_failed
replication_already_exists
replication_config_invalid
replication_not_found
replication_service_not_found
request_already_exists
request_forbidden
request_not_found
resource_managed_by_governance
resource_managed_by_scim
resource_not_managed_by_scim
root_account_required
same_organization_required
schema_insights_failed
service_acl_not_found
service_acl_too_many
service_does_not_exist
service_governance_not_enabled
service_integration_endpoint_not_found
service_integration_not_found
service_integration_project_mismatch_source_destination
service_maintenance_required
service_not_found
service_type_not_allowed
shipping_address_not_found
signup_welcome_invalid_key
stripe_customer_owning_account_must_be_organization
support_contract_and_account_must_be_in_same_organization
support_contract_earliest_cancellation_date_later_than_end_date
support_contract_must_have_billing_group
support_contract_null_tier
team_limit_exceeded
team_names_must_be_unique
tenant_mismatch
topic_not_found
unable_to_parse_query
unit_cannot_be_moved_out_of_organization
unknown_user_sso_login_attempt
unsupported_resource_type
user_already_in_organization
user_already_invited_to_organization
user_config_2fa_otp_verification_failed
user_deactivated
user_domain_does_not_belong_to_organization_or_no_linked_auth_method
user_group_names_must_be_unique
user_group_not_found
user_groups_belong_to_different_accounts
user_groups_must_be_from_same_account
user_has_no_access_to_billing_info
user_has_no_access_to_project_with_current_authentication_method
user_has_to_sign_in_with_non_account_authentication_method
user_has_too_many_disk_addition_requests
user_is_internal_user
user_not_account_owner
user_not_account_owner_of_billing_group
user_not_account_owner_of_parent_account
user_not_admin_of_account_billing_group
user_not_application_user
user_not_found
user_not_managed_by_organization
user_not_organization_admin
user_not_signed_in_with_account_authentication_method
user_oauth_authentication_method_not_allowed
user_password_authentication_method_not_allowed
user_personal_token_allowed_authentication_methods_cannot_be_disabled
user_personal_token_not_allowed
user_personal_tokens_cannot_be_disabled
user_role_not_allowed_to_perform_operation
user_saml_authentication_method_not_allowed
user_weblink_action_expired
users_belong_to_different_tenant_from_user_group_account
account_id required | string Account ID |
payment_method_id required | string <= 256 characters Unique identifier for a Stripe payment method |
{- "payment_method_id": "string"
}
{- "card": {
- "brand": "string",
- "card_id": "string",
- "country": "string",
- "country_code": "st",
- "exp_month": 1,
- "exp_year": 2015,
- "last4": "string",
- "name": "string",
- "organization_id": "string",
- "projects": [
- "string"
]
}, - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
account_id required | string Account ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/payment_methods', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "cards": [
- {
- "brand": "string",
- "card_id": "string",
- "country": "string",
- "country_code": "st",
- "exp_month": 1,
- "exp_year": 2015,
- "last4": "string",
- "name": "string"
}
], - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
account_id required | string Account ID |
auth_token_extend_when_used | boolean Extend authentication token validity when used |
auth_token_max_age_seconds | integer [ 300 .. 1296000 ] Auth Token Max Age Seconds |
authentication_method_name required | string <= 128 characters Authentication Method Name |
authentication_method_type required | string Enum: "internal" "saml" Authentication method type |
auto_join_team_id | string <= 32 characters Automatically add users to a team, when user signs up using this authentication method |
auto_join_user_group_id | string <= 36 characters Automatically add users to a group, when user signs up using this authentication method |
Array of objects Linked Domains | |
saml_assertion_signed_enabled | boolean Set to 'true' to enable WantAssertionsSigned |
saml_authn_requests_signed_enabled | boolean Set to 'true' to enable AuthnRequestsSigned |
saml_certificate | string <= 16384 characters Identity provider's certificate |
saml_digest_algorithm | string Enum: "sha1" "sha256" "sha384" "sha512" Digest algorithm. This is an advanced option that typically does not need to be set. |
saml_entity_id | string <= 2048 characters Saml Entity ID |
object SAMLFieldMapping | |
saml_idp_login_allowed | boolean Set to 'true' to enable IdP initiated login |
saml_idp_url | string <= 2048 characters Saml Idp Url |
saml_join_groups | boolean SAML join groups enabled |
saml_requested_authn_context_enabled | boolean Set to 'false' to disable RequestedAuthnContext |
saml_signature_algorithm | string Enum: "rsa-sha1" "dsa-sha1" "rsa-sha256" "rsa-sha384" "rsa-sha512" SAMLSignatureAlgorithm |
saml_variant | string Value: "adfs" SAMLVariant |
scim_enabled | boolean SCIM enabled |
{- "auth_token_extend_when_used": true,
- "auth_token_max_age_seconds": 300,
- "authentication_method_name": "string",
- "authentication_method_type": "internal",
- "auto_join_team_id": "string",
- "auto_join_user_group_id": "string",
- "linked_domains": [
- {
- "domain_id": "string"
}
], - "saml_assertion_signed_enabled": true,
- "saml_authn_requests_signed_enabled": true,
- "saml_certificate": "string",
- "saml_digest_algorithm": "sha1",
- "saml_entity_id": "string",
- "saml_field_mapping": {
- "email": "string",
- "first_name": "string",
- "groups": "string",
- "identity": "string",
- "last_name": "string",
- "real_name": "string"
}, - "saml_idp_login_allowed": true,
- "saml_idp_url": "string",
- "saml_join_groups": true,
- "saml_requested_authn_context_enabled": true,
- "saml_signature_algorithm": "rsa-sha1",
- "saml_variant": "adfs",
- "scim_enabled": true
}
{- "authentication_method": {
- "account_id": "string",
- "auth_token_extend_when_used": true,
- "auth_token_max_age_seconds": 300,
- "authentication_method_enabled": true,
- "authentication_method_id": "string",
- "authentication_method_name": "string",
- "authentication_method_type": "internal",
- "auto_join_team_id": "string",
- "auto_join_user_group_id": "string",
- "create_time": "string",
- "delete_time": "string",
- "organization_id": "string",
- "saml_acs_url": "string",
- "saml_assertion_signed_enabled": true,
- "saml_authn_requests_signed_enabled": true,
- "saml_cert": "adfs",
- "saml_certificate": "string",
- "saml_certificate_issuer": "string",
- "saml_certificate_not_valid_after": "string",
- "saml_certificate_not_valid_before": "string",
- "saml_certificate_subject": "string",
- "saml_digest_algorithm": "sha1",
- "saml_entity_id": "string",
- "saml_field_mapping": {
- "email": "string",
- "first_name": "string",
- "groups": "string",
- "identity": "string",
- "last_name": "string",
- "real_name": "string"
}, - "saml_idp_login_allowed": true,
- "saml_idp_url": "string",
- "saml_join_groups": true,
- "saml_metadata_url": "string",
- "saml_requested_authn_context_enabled": true,
- "saml_signature_algorithm": "rsa-sha1",
- "saml_sp_certificate": "string",
- "saml_variant": "adfs",
- "scim_enabled": true,
- "scim_url": "string",
- "state": "active",
- "update_time": "string"
}
}
account_id required | string Account ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/authentication', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "authentication_methods": [
- {
- "account_id": "string",
- "auth_token_extend_when_used": true,
- "auth_token_max_age_seconds": 300,
- "authentication_method_enabled": true,
- "authentication_method_id": "string",
- "authentication_method_name": "string",
- "authentication_method_type": "internal",
- "auto_join_team_id": "string",
- "auto_join_user_group_id": "string",
- "create_time": "string",
- "delete_time": "string",
- "organization_id": "string",
- "saml_acs_url": "string",
- "saml_assertion_signed_enabled": true,
- "saml_authn_requests_signed_enabled": true,
- "saml_cert": "adfs",
- "saml_certificate": "string",
- "saml_certificate_issuer": "string",
- "saml_certificate_not_valid_after": "string",
- "saml_certificate_not_valid_before": "string",
- "saml_certificate_subject": "string",
- "saml_digest_algorithm": "sha1",
- "saml_entity_id": "string",
- "saml_field_mapping": {
- "email": "string",
- "first_name": "string",
- "groups": "string",
- "identity": "string",
- "last_name": "string",
- "real_name": "string"
}, - "saml_idp_login_allowed": true,
- "saml_idp_url": "string",
- "saml_join_groups": true,
- "saml_metadata_url": "string",
- "saml_requested_authn_context_enabled": true,
- "saml_signature_algorithm": "rsa-sha1",
- "saml_sp_certificate": "string",
- "saml_variant": "adfs",
- "scim_enabled": true,
- "scim_url": "string",
- "state": "active",
- "update_time": "string"
}
]
}
account_id required | string Account ID |
account_authentication_method_id required | string Account authentication method ID |
const request = require('request'); const options = { method: 'DELETE', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/authentication/%7Baccount_authentication_method_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "message": "string"
}
account_id required | string Account ID |
account_authentication_method_id required | string Account authentication method ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/authentication/%7Baccount_authentication_method_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "authentication_method": {
- "account_id": "string",
- "auth_token_extend_when_used": true,
- "auth_token_max_age_seconds": 300,
- "authentication_method_enabled": true,
- "authentication_method_id": "string",
- "authentication_method_name": "string",
- "authentication_method_type": "internal",
- "auto_join_team_id": "string",
- "auto_join_user_group_id": "string",
- "create_time": "string",
- "delete_time": "string",
- "organization_id": "string",
- "saml_acs_url": "string",
- "saml_assertion_signed_enabled": true,
- "saml_authn_requests_signed_enabled": true,
- "saml_cert": "adfs",
- "saml_certificate": "string",
- "saml_certificate_issuer": "string",
- "saml_certificate_not_valid_after": "string",
- "saml_certificate_not_valid_before": "string",
- "saml_certificate_subject": "string",
- "saml_digest_algorithm": "sha1",
- "saml_entity_id": "string",
- "saml_field_mapping": {
- "email": "string",
- "first_name": "string",
- "groups": "string",
- "identity": "string",
- "last_name": "string",
- "real_name": "string"
}, - "saml_idp_login_allowed": true,
- "saml_idp_url": "string",
- "saml_join_groups": true,
- "saml_metadata_url": "string",
- "saml_requested_authn_context_enabled": true,
- "saml_signature_algorithm": "rsa-sha1",
- "saml_sp_certificate": "string",
- "saml_variant": "adfs",
- "scim_enabled": true,
- "scim_url": "string",
- "state": "active",
- "update_time": "string"
}
}
account_id required | string Account ID |
account_authentication_method_id required | string Account authentication method ID |
auth_token_extend_when_used | boolean Extend authentication token validity when used |
auth_token_max_age_seconds | integer [ 300 .. 1296000 ] Auth Token Max Age Seconds |
authentication_method_enabled | boolean If true, authentication method can be used to access account/projects in account. If false, authentication method can still be used to sign in |
authentication_method_name | string <= 128 characters Authentication Method Name |
auto_join_team_id | string <= 32 characters Automatically add users to a team, when user signs up using this authentication method |
auto_join_user_group_id | string <= 36 characters Automatically add users to a group, when user signs up using this authentication method |
saml_assertion_signed_enabled | boolean Set to 'true' to enable WantAssertionsSigned |
saml_authn_requests_signed_enabled | boolean Set to 'true' to enable AuthnRequestsSigned |
saml_certificate | string <= 16384 characters Identity provider's certificate |
saml_digest_algorithm | string Enum: "sha1" "sha256" "sha384" "sha512" Digest algorithm. This is an advanced option that typically does not need to be set. |
saml_entity_id | string <= 2048 characters Saml Entity ID |
object SAMLFieldMapping | |
saml_idp_login_allowed | boolean Set to 'true' to enable IdP initiated login |
saml_idp_url | string <= 2048 characters Saml Idp Url |
saml_join_groups | boolean SAML join groups enabled |
saml_requested_authn_context_enabled | boolean Set to 'false' to disable RequestedAuthnContext |
saml_signature_algorithm | string Enum: "rsa-sha1" "dsa-sha1" "rsa-sha256" "rsa-sha384" "rsa-sha512" SAMLSignatureAlgorithm |
saml_variant | string Value: "adfs" SAMLVariant |
scim_enabled | boolean SCIM enabled |
{- "auth_token_extend_when_used": true,
- "auth_token_max_age_seconds": 300,
- "authentication_method_enabled": true,
- "authentication_method_name": "string",
- "auto_join_team_id": "string",
- "auto_join_user_group_id": "string",
- "saml_assertion_signed_enabled": true,
- "saml_authn_requests_signed_enabled": true,
- "saml_certificate": "string",
- "saml_digest_algorithm": "sha1",
- "saml_entity_id": "string",
- "saml_field_mapping": {
- "email": "string",
- "first_name": "string",
- "groups": "string",
- "identity": "string",
- "last_name": "string",
- "real_name": "string"
}, - "saml_idp_login_allowed": true,
- "saml_idp_url": "string",
- "saml_join_groups": true,
- "saml_requested_authn_context_enabled": true,
- "saml_signature_algorithm": "rsa-sha1",
- "saml_variant": "adfs",
- "scim_enabled": true
}
{- "authentication_method": {
- "account_id": "string",
- "auth_token_extend_when_used": true,
- "auth_token_max_age_seconds": 300,
- "authentication_method_enabled": true,
- "authentication_method_id": "string",
- "authentication_method_name": "string",
- "authentication_method_type": "internal",
- "auto_join_team_id": "string",
- "auto_join_user_group_id": "string",
- "create_time": "string",
- "delete_time": "string",
- "organization_id": "string",
- "saml_acs_url": "string",
- "saml_assertion_signed_enabled": true,
- "saml_authn_requests_signed_enabled": true,
- "saml_cert": "adfs",
- "saml_certificate": "string",
- "saml_certificate_issuer": "string",
- "saml_certificate_not_valid_after": "string",
- "saml_certificate_not_valid_before": "string",
- "saml_certificate_subject": "string",
- "saml_digest_algorithm": "sha1",
- "saml_entity_id": "string",
- "saml_field_mapping": {
- "email": "string",
- "first_name": "string",
- "groups": "string",
- "identity": "string",
- "last_name": "string",
- "real_name": "string"
}, - "saml_idp_login_allowed": true,
- "saml_idp_url": "string",
- "saml_join_groups": true,
- "saml_metadata_url": "string",
- "saml_requested_authn_context_enabled": true,
- "saml_signature_algorithm": "rsa-sha1",
- "saml_sp_certificate": "string",
- "saml_variant": "adfs",
- "scim_enabled": true,
- "scim_url": "string",
- "state": "active",
- "update_time": "string"
}
}
account_id required | string Account ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/billing-group', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "account_billing_groups": [
- {
- "account_id": "string",
- "account_name": "string",
- "address_lines": [
- "string"
], - "billing_address": "string",
- "billing_address_id": "stringstringstringstringstringstring",
- "billing_currency": "AUD",
- "billing_emails": [
- {
- "email": "string"
}
], - "billing_extra_text": "string",
- "billing_group_id": "stringstringstringstringstringstring",
- "billing_group_name": "string",
- "billing_type": "string",
- "card_info": {
- "brand": "string",
- "card_id": "string",
- "country": "string",
- "country_code": "st",
- "exp_month": 1,
- "exp_year": 2015,
- "last4": "string",
- "name": "string",
- "user_email": "string"
}, - "city": "string",
- "company": "string",
- "country": "string",
- "country_code": "st",
- "create_time": "string",
- "estimated_balance_local": "string",
- "estimated_balance_usd": "string",
- "payment_method": "accrual",
- "shipping_address_id": "stringstringstringstringstringstring",
- "state": "string",
- "vat_id": "string",
- "zip_code": "string"
}
], - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
account_name required | string <= 128 characters Account name |
parent_account_id | string <= 36 characters Account ID |
primary_billing_group_id | string = 36 characters Billing group ID |
{- "account_name": "string",
- "parent_account_id": "string",
- "primary_billing_group_id": "stringstringstringstringstringstring"
}
{- "account": {
- "access_source": "descendant_membership",
- "account_id": "string",
- "account_name": "string",
- "account_owner_team_id": "string",
- "create_time": "string",
- "features": { },
- "is_account_member": true,
- "is_account_owner": true,
- "organization_id": "string",
- "parent_account_id": "string",
- "primary_billing_group_id": "stringstringstringstringstringstring",
- "root_account_id": "string",
- "tenant_id": "string",
- "update_time": "string"
}, - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "accounts": [
- {
- "access_source": "descendant_membership",
- "account_id": "string",
- "account_name": "string",
- "account_owner_team_id": "string",
- "create_time": "string",
- "features": { },
- "is_account_member": true,
- "is_account_owner": true,
- "organization_id": "string",
- "parent_account_id": "string",
- "primary_billing_group_id": "stringstringstringstringstringstring",
- "root_account_id": "string",
- "tenant_id": "string",
- "update_time": "string"
}
], - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
account_id required | string Account ID |
const request = require('request'); const options = { method: 'DELETE', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
account_id required | string Account ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "account": {
- "access_source": "descendant_membership",
- "account_id": "string",
- "account_name": "string",
- "account_owner_team_id": "string",
- "create_time": "string",
- "features": { },
- "is_account_member": true,
- "is_account_owner": true,
- "organization_id": "string",
- "parent_account_id": "string",
- "primary_billing_group_id": "stringstringstringstringstringstring",
- "root_account_id": "string",
- "tenant_id": "string",
- "update_time": "string"
}, - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
account_id required | string Account ID |
account_name | string <= 128 characters Account name |
primary_billing_group_id | string = 36 characters Billing group ID |
{- "account_name": "string",
- "primary_billing_group_id": "stringstringstringstringstringstring"
}
{- "account": {
- "access_source": "descendant_membership",
- "account_id": "string",
- "account_name": "string",
- "account_owner_team_id": "string",
- "create_time": "string",
- "features": { },
- "is_account_member": true,
- "is_account_owner": true,
- "organization_id": "string",
- "parent_account_id": "string",
- "primary_billing_group_id": "stringstringstringstringstringstring",
- "root_account_id": "string",
- "tenant_id": "string",
- "update_time": "string"
}, - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
account_id required | string Account ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/events', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "events": [
- {
- "account_id": "string",
- "action_description": "string",
- "action_type": "string",
- "actor": "string",
- "actor_user_id": "string",
- "create_time": "string",
- "log_entry_id": 0,
- "team_id": "string"
}
], - "message": "string"
}
account_id required | string Account ID |
parent_account_id required | string <= 36 characters Account ID |
{- "parent_account_id": "string"
}
{- "account": {
- "access_source": "descendant_membership",
- "account_id": "string",
- "account_name": "string",
- "account_owner_team_id": "string",
- "create_time": "string",
- "features": { },
- "is_account_member": true,
- "is_account_owner": true,
- "organization_id": "string",
- "parent_account_id": "string",
- "primary_billing_group_id": "stringstringstringstringstringstring",
- "root_account_id": "string",
- "tenant_id": "string",
- "update_time": "string"
}, - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
account_id required | string Account ID |
card_id required | string Credit card ID |
const request = require('request'); const options = { method: 'DELETE', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/payment_method/%7Bcard_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
account_id required | string Account ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/projects', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string",
- "projects": [
- {
- "account_id": "string",
- "account_name": "string",
- "address_lines": [
- "string"
], - "available_credits": "string",
- "billing_address": "string",
- "billing_currency": "AUD",
- "billing_emails": [
- {
- "email": "string"
}
], - "billing_extra_text": "string",
- "billing_group_id": "stringstringstringstringstringstring",
- "billing_group_name": "string",
- "card_info": {
- "brand": "string",
- "card_id": "string",
- "country": "string",
- "country_code": "st",
- "exp_month": 1,
- "exp_year": 2015,
- "last4": "string",
- "name": "string",
- "user_email": "string"
}, - "city": "string",
- "company": "string",
- "country": "string",
- "country_code": "st",
- "default_cloud": "string",
- "end_of_life_extension": {
- "elasticsearch": {
- "eol_date": "string",
- "version": "string"
}
}, - "estimated_balance": "string",
- "estimated_balance_local": "string",
- "features": { },
- "organization_id": "string",
- "payment_method": "string",
- "project_name": "string",
- "state": "string",
- "tags": { },
- "tech_emails": [
- {
- "email": "string"
}
], - "tenant_id": "string",
- "trial_expiration_time": "string",
- "vat_id": "string",
- "zip_code": "string"
}
], - "total_project_count": 0
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
project_name required | string Project name |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/project/%7Bproject_name%7D/teams', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string",
- "teams": [
- {
- "account_id": "string",
- "create_time": "string",
- "team_id": "string",
- "team_name": "string",
- "team_type": "admin",
- "update_time": "string"
}
]
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_name required | string <= 128 characters Team name |
{- "team_name": "string"
}
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string",
- "team": {
- "account_id": "string",
- "create_time": "string",
- "team_id": "string",
- "team_name": "string",
- "update_time": "string"
}
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/teams', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string",
- "teams": [
- {
- "account_id": "string",
- "create_time": "string",
- "team_id": "string",
- "team_name": "string",
- "update_time": "string"
}
]
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_id required | string Team ID |
const request = require('request'); const options = { method: 'DELETE', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/team/%7Bteam_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_id required | string Team ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/team/%7Bteam_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string",
- "team": {
- "account_id": "string",
- "create_time": "string",
- "team_id": "string",
- "team_name": "string",
- "update_time": "string"
}
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_id required | string Team ID |
team_name required | string <= 128 characters Team name |
{- "team_name": "string"
}
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string",
- "team": {
- "account_id": "string",
- "create_time": "string",
- "team_id": "string",
- "team_name": "string",
- "update_time": "string"
}
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_id required | string Team ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/team/%7Bteam_id%7D/invites', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "account_invites": [
- {
- "account_id": "string",
- "account_name": "string",
- "create_time": "string",
- "invited_by_user_email": "string",
- "team_id": "string",
- "team_name": "string",
- "user_email": "string"
}
], - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_id required | string Team ID |
user_email required | string Email address |
const request = require('request'); const options = { method: 'DELETE', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/team/%7Bteam_id%7D/invites/%7Buser_email%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
account_id required | string Account ID |
invite_verification_code required | string Verification code received via email |
const request = require('request'); const options = { method: 'POST', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/invite/%7Binvite_verification_code%7D' }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "invite_details": {
- "user_email": "string"
}, - "message": "string"
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_id required | string Team ID |
user_id required | string User ID |
const request = require('request'); const options = { method: 'DELETE', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/team/%7Bteam_id%7D/member/%7Buser_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_id required | string Team ID |
email required | string <= 319 characters User email address |
{- "email": "string"
}
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_id required | string Team ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/team/%7Bteam_id%7D/members', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "members": [
- {
- "create_time": "string",
- "real_name": "string",
- "team_id": "string",
- "team_name": "string",
- "update_time": "string",
- "user_email": "string",
- "user_id": "string"
}
], - "message": "string"
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_id required | string Team ID |
project required | string Project name |
team_type required | string Enum: "admin" "operator" "developer" "read_only" "project:integrations:read" "project:integrations:write" "project:networking:read" "project:networking:write" "project:permissions:read" "service:configuration:write" "service:logs:read" "project:services:read" "project:services:write" "project:audit_logs:read" "service:data:write" "service:secrets:read" "role:services:maintenance" "role:services:recover" "organization:billing:read" "organization:billing:write" "organization:audit_logs:read" "organization:projects:read" "organization:projects:write" "organization:users:write" "organization:permissions:read" "organization:permissions:write" "organization:app_users:write" "organization:groups:write" "organization:idps:write" "organization:domains:write" "organization:network:read" "organization:network:write" "role:organization:admin" "service:users:write" Team type (permission level) |
{- "team_type": "admin"
}
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_id required | string Team ID |
project required | string Project name |
team_type | string Enum: "admin" "operator" "developer" "read_only" "project:integrations:read" "project:integrations:write" "project:networking:read" "project:networking:write" "project:permissions:read" "service:configuration:write" "service:logs:read" "project:services:read" "project:services:write" "project:audit_logs:read" "service:data:write" "service:secrets:read" "role:services:maintenance" "role:services:recover" "organization:billing:read" "organization:billing:write" "organization:audit_logs:read" "organization:projects:read" "organization:projects:write" "organization:users:write" "organization:permissions:read" "organization:permissions:write" "organization:app_users:write" "organization:groups:write" "organization:idps:write" "organization:domains:write" "organization:network:read" "organization:network:write" "role:organization:admin" "service:users:write" Team type (permission level) |
{- "team_type": "admin"
}
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_id required | string Team ID |
project required | string Project name |
const request = require('request'); const options = { method: 'DELETE', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/team/%7Bteam_id%7D/project/%7Bproject%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
team_id required | string Team ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/team/%7Bteam_id%7D/projects', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string",
- "projects": [
- {
- "project_name": "string",
- "team_type": "admin"
}
]
}
account_id required | string Account ID |
user_id required | string User ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/user/%7Buser_id%7D/projects', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string",
- "user_projects": [
- {
- "access_type": "string",
- "account_id": "string",
- "create_time": "string",
- "member_type": "admin",
- "project_name": "string",
- "real_name": "string",
- "team_id": "string",
- "team_name": "string",
- "user_email": "string"
}
]
}
Teams have been deprecated and are being migrated to groups. On 2 September 2024 the Account Owners team will transition to super admin. Super admin have full access to the organization. The Account Owners and super admin are synced, so the removal of the Account Owners team will have no impact on existing permissions. From 4 November 2024 you won't be able to create new teams or update existing ones. Existing teams will be migrated to groups after this date. On 2 December 2024 all teams will be deleted and the teams feature will be completely removed.
account_id required | string Account ID |
user_id required | string User ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/account/%7Baccount_id%7D/user/%7Buser_id%7D/teams', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string",
- "teams": [
- {
- "account_id": "string",
- "account_name": "string",
- "team_id": "string",
- "team_name": "string"
}
]
}
account_id required | string Account ID |
limit | integer [ 1 .. 500 ] Maximum number of results to return |
order_by | string Enum: "user_email:asc" "user_email:desc" "user_id:asc" "user_id:desc" "real_name:asc" "real_name:desc" Sorting criteria; desc is descending order and asc ascending |
query | string <= 128 characters Filter keyword |
{- "limit": 1,
- "order_by": "user_email:asc",
- "query": "string"
}
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string",
- "users": [
- {
- "real_name": "string",
- "user_email": "string",
- "user_id": "string"
}
]
}
Creates a token for an application user.
organization_id required | string ID of an organization |
user_id required | string User ID |
description required | string <= 1000 characters Description |
extend_when_used | boolean Extend token expiration time when token is used. Only applicable if max_age_seconds is specified. |
max_age_seconds | integer [ 600 .. 315360000 ] Time the token remains valid since creation (or since last use if extend_when_used is true) |
scopes | Array of strings <= 100 items Scopes this token is restricted to if specified |
{- "description": "string",
- "extend_when_used": true,
- "max_age_seconds": 600,
- "scopes": [
- "string"
]
}
{- "full_token": "string",
- "token_prefix": "string"
}
Returns a list of tokens for an application user.
organization_id required | string ID of an organization |
user_id required | string User ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/organization/%7Borganization_id%7D/application-users/%7Buser_id%7D/access-tokens', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "tokens": [
- {
- "create_time": "string",
- "created_manually": true,
- "currently_active": true,
- "description": "string",
- "expiry_time": "string",
- "extend_when_used": true,
- "last_ip": "string",
- "last_used_time": "string",
- "last_user_agent": "string",
- "last_user_agent_human_readable": "string",
- "max_age_seconds": 600,
- "scopes": [
- "string"
], - "token_prefix": "string"
}
]
}
Deletes an application user's token.
organization_id required | string ID of an organization |
user_id required | string User ID |
token_prefix required | string Access token prefix |
const request = require('request'); const options = { method: 'DELETE', url: 'https://api.aiven.io/v1/organization/%7Borganization_id%7D/application-users/%7Buser_id%7D/access-tokens/%7Btoken_prefix%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
Creates an application user in an organization.
organization_id required | string ID of an organization |
is_super_admin | boolean Alters super admin state of the organization application user |
name required | string Name |
{- "is_super_admin": true,
- "name": "string"
}
{- "is_super_admin": true,
- "name": "string",
- "user_email": "string",
- "user_id": "string"
}
Returns a list of application users for an organization.
organization_id required | string ID of an organization |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/organization/%7Borganization_id%7D/application-users', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "application_users": [
- {
- "is_super_admin": true,
- "name": "string",
- "user_email": "string",
- "user_id": "string"
}
]
}
Deletes an application user.
organization_id required | string ID of an organization |
user_id required | string User ID |
const request = require('request'); const options = { method: 'DELETE', url: 'https://api.aiven.io/v1/organization/%7Borganization_id%7D/application-users/%7Buser_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
Gets profile information for an application user.
organization_id required | string ID of an organization |
user_id required | string User ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/organization/%7Borganization_id%7D/application-users/%7Buser_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "is_super_admin": true,
- "name": "string",
- "user_email": "string",
- "user_id": "string"
}
Update details on an application user of the organization.
organization_id required | string ID of an organization |
user_id required | string User ID |
is_super_admin | boolean Alters super admin state of the organization application user |
name required | string Name |
{- "is_super_admin": true,
- "name": "string"
}
{- "is_super_admin": true,
- "name": "string",
- "user_email": "string",
- "user_id": "string"
}
organization_id required | string ID of an organization |
authentication_method_id required | string Organization authentication method ID |
domain_id required | string ID of the domain |
{- "domain_id": "string"
}
{- "message": "string",
- "errors": [
- {
- "message": "string",
- "error_code": "organization_mismatch"
}
]
}
organization_id required | string ID of an organization |
authentication_method_id required | string Organization authentication method ID |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/organization/%7Borganization_id%7D/authentication-methods/%7Bauthentication_method_id%7D/domains', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "domains": [
- {
- "challenge_token": "string",
- "create_time": "string",
- "domain_id": "string",
- "domain_name": "string",
- "linked_authentication_method_ids": [
- "string"
], - "organization_id": "string",
- "state": "deleted",
- "verification_type": "dns"
}
]
}
organization_id required | string ID of an organization |
authentication_method_id required | string Organization authentication method ID |
domain_id required | string ID of a domain |
const request = require('request'); const options = { method: 'DELETE', url: 'https://api.aiven.io/v1/organization/%7Borganization_id%7D/authentication-methods/%7Bauthentication_method_id%7D/domains/%7Bdomain_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "message": "string",
- "errors": [
- {
- "message": "string",
- "error_code": "user_not_organization_admin"
}
]
}
account_id | string <= 36 characters Account ID |
address_lines | Array of strings <= 16 items Address lines |
billing_address_id | string = 36 characters Address ID |
billing_currency | string Enum: "AUD" "CAD" "CHF" "DKK" "EUR" "GBP" "JPY" "NOK" "NZD" "SEK" "SGD" "USD" Billing currency |
Array of objects <= 10 items List of project billing email addresses | |
billing_extra_text | string <= 1000 characters Extra text to be included in all project invoices, e.g. purchase order or cost center number |
billing_group_name required | string <= 128 characters Billing group name |
card_id | string <= 64 characters Credit card ID |
city | string <= 512 characters Address city |
company | string <= 128 characters Name of a company |
copy_from_billing_group | string = 36 characters Billing group ID |
country_code | string <= 2 characters Two letter country code for billing country |
shipping_address_id | string = 36 characters Address ID |
state | string <= 128 characters Address state or province |
vat_id | string <= 64 characters EU VAT Identification Number |
zip_code | string <= 32 characters Address zip code |
{- "account_id": "string",
- "address_lines": [
- "string"
], - "billing_address_id": "stringstringstringstringstringstring",
- "billing_currency": "AUD",
- "billing_emails": [
- {
- "email": "string"
}
], - "billing_extra_text": "string",
- "billing_group_name": "string",
- "card_id": "string",
- "city": "string",
- "company": "string",
- "copy_from_billing_group": "stringstringstringstringstringstring",
- "country_code": "st",
- "shipping_address_id": "stringstringstringstringstringstring",
- "state": "string",
- "vat_id": "string",
- "zip_code": "string"
}
{- "billing_group": {
- "account_id": "string",
- "account_name": "string",
- "address_lines": [
- "string"
], - "billing_address": "string",
- "billing_address_id": "stringstringstringstringstringstring",
- "billing_currency": "AUD",
- "billing_emails": [
- {
- "email": "string"
}
], - "billing_extra_text": "string",
- "billing_group_id": "stringstringstringstringstringstring",
- "billing_group_name": "string",
- "billing_type": "string",
- "card_info": {
- "brand": "string",
- "card_id": "string",
- "country": "string",
- "country_code": "st",
- "exp_month": 1,
- "exp_year": 2015,
- "last4": "string",
- "name": "string",
- "user_email": "string"
}, - "city": "string",
- "company": "string",
- "country": "string",
- "country_code": "st",
- "create_time": "string",
- "estimated_balance_local": "string",
- "estimated_balance_usd": "string",
- "payment_method": "accrual",
- "shipping_address_id": "stringstringstringstringstringstring",
- "state": "string",
- "vat_id": "string",
- "zip_code": "string"
}, - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/billing-group', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "billing_groups": [
- {
- "account_id": "string",
- "account_name": "string",
- "address_lines": [
- "string"
], - "billing_address": "string",
- "billing_address_id": "stringstringstringstringstringstring",
- "billing_currency": "AUD",
- "billing_emails": [
- {
- "email": "string"
}
], - "billing_extra_text": "string",
- "billing_group_id": "stringstringstringstringstringstring",
- "billing_group_name": "string",
- "billing_type": "string",
- "card_info": {
- "brand": "string",
- "card_id": "string",
- "country": "string",
- "country_code": "st",
- "exp_month": 1,
- "exp_year": 2015,
- "last4": "string",
- "name": "string",
- "user_email": "string"
}, - "city": "string",
- "company": "string",
- "country": "string",
- "country_code": "st",
- "create_time": "string",
- "estimated_balance_local": "string",
- "estimated_balance_usd": "string",
- "payment_method": "accrual",
- "shipping_address_id": "stringstringstringstringstringstring",
- "state": "string",
- "vat_id": "string",
- "zip_code": "string"
}
], - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
billing_group_id required | string Billing group id |
code required | string <= 1024 characters Credit code |
{- "code": "string"
}
{- "credit": {
- "code": "string",
- "expire_time": "string",
- "remaining_value": "string",
- "start_time": "string",
- "type": "discount",
- "value": "string"
}, - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
billing_group_id required | string Billing group id |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/billing-group/%7Bbilling_group_id%7D/credits', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "credits": [
- {
- "code": "string",
- "expire_time": "string",
- "remaining_value": "string",
- "start_time": "string",
- "type": "discount",
- "value": "string"
}
], - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
billing_group_id required | string Billing group id |
const request = require('request'); const options = { method: 'DELETE', url: 'https://api.aiven.io/v1/billing-group/%7Bbilling_group_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
billing_group_id required | string Billing group id |
const request = require('request'); const options = { method: 'GET', url: 'https://api.aiven.io/v1/billing-group/%7Bbilling_group_id%7D', headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'} }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "billing_group": {
- "account_id": "string",
- "account_name": "string",
- "address_lines": [
- "string"
], - "billing_address": "string",
- "billing_address_id": "stringstringstringstringstringstring",
- "billing_currency": "AUD",
- "billing_emails": [
- {
- "email": "string"
}
], - "billing_extra_text": "string",
- "billing_group_id": "stringstringstringstringstringstring",
- "billing_group_name": "string",
- "billing_type": "string",
- "card_info": {
- "brand": "string",
- "card_id": "string",
- "country": "string",
- "country_code": "st",
- "exp_month": 1,
- "exp_year": 2015,
- "last4": "string",
- "name": "string",
- "user_email": "string"
}, - "city": "string",
- "company": "string",
- "country": "string",
- "country_code": "st",
- "create_time": "string",
- "estimated_balance_local": "string",
- "estimated_balance_usd": "string",
- "payment_method": "accrual",
- "shipping_address_id": "stringstringstringstringstringstring",
- "state": "string",
- "vat_id": "string",
- "zip_code": "string"
}, - "errors": [
- {
- "message": "string",
- "more_info": "string",
- "status": 0
}
], - "message": "string"
}
billing_group_id required | string Billing group id |
account_id | string <= 36 characters Account ID |
address_lines | Array of strings <= 16 items Address lines |
billing_address_id | string = 36 characters Address ID |
billing_currency | string Enum: "AUD" "CAD" "CHF" "DKK" "EUR" "GBP" "JPY" "NOK" "NZD" "SEK" "SGD" "USD" Billing currency |
Array of objects <= 10 items List of project billing email addresses | |
billing_extra_text | string <= 1000 characters Extra text to be included in all project invoices, e.g. purchase order or cost center number |
billing_group_name | string <= 128 characters Billing group name |
card_id | string <= 64 characters Credit card ID |
city | string <= 512 characters Address city |
company | string <= 128 characters Name of a company |
country_code | string <= 2 characters Two letter country code for billing country |
shipping_address_id | string = 36 characters Address ID |
state | string <= 128 characters Address state or province |
vat_id | string <= 64 characters EU VAT Identification Number |
zip_code | string <= 32 characters Address zip code |
{- "account_id": "string",
- "address_lines": [
- "string"
], - "billing_address_id": "stringstringstringstringstringstring",
- "billing_currency": "AUD",
- "billing_emails": [
- {
- "email": "string"
}
], - "billing_extra_text": "string",
- "billing_group_name": "string",
- "card_id": "string",
- "city": "string",
- "company": "string",
- "country_code": "st",
- "shipping_address_id": "stringstringstringstringstringstring",
- "state": "string",
- "vat_id": "string",
- "zip_code": "string"
}
{- "billing_group": {
- "account_id": "string",
- "account_name": "string",
- "address_lines": [
- "string"
], - "billing_address": "string",
- "billing_address_id": "stringstringstringstringstringstring",
- "billing_currency": "AUD",
- "billing_emails": [
- {
- "email": "string"
}
], - "billing_extra_text": "string",
- "billing_group_id": "stringstringstringstringstringstring",
- "billing_group_name": "string",
- "billing_type": "string",
- "card_info": {
- "brand": "string",
- "card_id": "string",
- "country": "string",
- "country_code": "st",
- "exp_month": 1,
- "exp_year": 2015,
- "last4": "string",
- "name": "string",
- "user_email": "string"
}, - "city": "string",
- "company": "string",
- "country": "string",
- "country_code": "st",
- "create_time": "string",
- "estimated_balance_local": "string",
- "estimated_balance_usd": "string",
- "payment_method": "accrual",
- "shipping_address_id": "stringstringstringstringstringstring",
- "state": "string",
- "vat_id": "string",
- "zip_code": "string"
}, - "errors": [
- {
- "message": "string",
- "more_info": <