---
title: "Create Subscription"
method: POST
path: "/api/v1/app/{app_id}/autoconfig"
tags: ["AutoConfig"]
---

# Create Subscription

`POST /api/v1/app/{app_id}/autoconfig`

## Request

- Base URL: `https://api.eu.svix.com`
- URL: `https://api.eu.svix.com/api/v1/app/{app_id}/autoconfig`
- Auth: HTTP bearer

Create an AutoConfig subscription.

## Path parameters

- `app_id` string, required: The Application's ID or UID.

## Headers

- `idempotency-key` string

## Request body

- CreateAutoConfigSubscriptionIn
  - `featureFlags` string[]: The set of feature flags the created token will have access to. When omitted or empty, the token inherits the calling token's feature flags. When set, these flags are used instead. An application token may only grant a subset of its own flags.

## Response `201`

- AutoConfigOut
  - `createdAt` string, date-time, required
  - `id` string, required: The AutoConfigSubscription's ID.
  - `token` string, required: The AutoConfig token

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation Error
- `429`: Too Many Requests

## Changes

- **2026-10-19** `cca56e67e5a4`: 1 info
  - added the required property `code` to the response with the `422` status
- **2026-10-19** `6472e298f46c`: 1 info
  - request body became optional
- **2026-09-30** `6b185abdfc1d`: 1 breaking
  - added required request body
- **2026-09-15** `ec93e663e534`: 1 info
  - api operation id `v1.endpoint.autoconfig.create` removed and replaced with `v1.autoconfig-subscription.create`
- **2026-09-11** `3f0040e4a57a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/svix/apis/svix-api/changes/api/v1/app/:app_id/autoconfig/post.md)

---

[API](https://skmtc.dev/svix/apis/svix-api.md) - [All operations](https://skmtc.dev/svix/apis/svix-api/llms.txt) - [OpenAPI document](https://skmtc.dev/svix/apis/svix-api/revisions/21bb0f86a732?raw)
