Internal Alertmanager not ready at Organization creation API

Hello , i created some scripts to deploy my Grafana configuration via API
When I create a new Organization , the internal Alertmanager is not ready yet . I need to spleep one minute to be sure of his disponibility . It is a kind of handicap when i tried to create mute timings and so on … Because the Alertmanager is not ready.

Example of the status api/alertmanager/grafana/api/v2/status before the one minute wait :

{
“message”: “Alertmanager does not exist for this organization”,
“traceID”: “”
}

Example after :

}
{
“cluster”: {
“peers”: ,
“status”: “disabled”
},
“config”: {
“route”: {
“receiver”: “grafana-default-email”,
“group_by”: [
“grafana_folder”,
“alertname”
]
},
“templates”: null,
“receivers”: [
{
“name”: “grafana-default-email”,
“grafana_managed_receiver_configs”: [
{
“uid”: “”,
“name”: “email receiver”,
“type”: “email”,
“disableResolveMessage”: false,
“settings”: {
“addresses”: “example@email.com
},
“secureSettings”: null
}
]
}
]
}…

Could you help me :slight_smile: ? Or explain me why i need to wait this time of disponibility ?