Create an Alexa skill, configure it, and configure Neo to use it (runs in background)
POST/v1/admin/integrations/alexa/auto-configuration
Automatic setup, used by the dashboard's Automatic tab and setup-auto. Each POST
creates or replaces the deployment's skill configuration. The target skill is the
deployment's live skill when the connected Amazon account can reach it, else a new skill
created at Amazon; so repeating the call reconfigures
the same skill instead of adding another. The skill is then configured at Amazon
over SMAPI (manifest, endpoints, account linking), and Neo is configured to use it
(invoke permission, AcceptGrant credentials, OIDC redirect URIs). The request
returns the skill id immediately with status: IN_PROGRESS; the rest runs in the
background (Alexa builds take 30-60s each, beyond the 29s request limit): grant a
setup-only invoke permission, set the events + Smart Home endpoint manifest and
wait for its build, register redirect_uris on the voice-assistant OIDC client,
and set account linking against the ESP User provider. Only then does it make the
skill live: replace the deployment's invoke permission and store its AcceptGrant
credentials, so a failed run leaves a working skill untouched.
The response only confirms which skill is being configured. Poll config_status
(an AlexaSetupStatus) on GET /v1/admin/integrations/alexa/configuration until
it reports DONE or FAILED for this skill_id; a FAILED status carries the
stage and error.
The run authenticates to SMAPI as the Amazon account connected with
PUT /v1/admin/integrations/alexa/lwa-connection, so connect one first. If LWA
refuses the connected account's token, the account is disconnected and the request
answers 400, so the dashboard offers to connect it again. Admin only.
Request
Responses
- 200
- 400
- 401
- 403
- 500
Skill created or reused; configuration running in the background
Invalid request body, no Amazon account connected (No Amazon account connected), or LWA/SMAPI refused the connected account: a profile with no
vendor (Failed to resolve SMAPI vendor), the connected account's token
(The connected Amazon account was refused, connect it again, after which it
is disconnected), or a skill SMAPI would not create (Failed to create skill).
Unauthorized - Invalid or missing authentication
Forbidden - User does not have permission to access the resource
Server error, LWA or SMAPI unavailable (network error or upstream 5xx/429), or the background run could not be started