> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/api-reference/internal/enrolment-and-messaging/enrolment-forms.md). Agents can also search and read this documentation through its [MCP server](https://docs.thewalletcrew.io/~gitbook/mcp).

# Enrolment Forms

## List enrolment forms

> Ordered by name. A form whose YAML cannot be parsed is left out.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"EnrolmentForms"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.configuration.enrolment:read"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"EnrolmentFormListItem":{"required":["hasForm","localeResourceCount","name"],"type":"object","properties":{"name":{"type":"string","description":"Form name, unique within the tenant; last segment of its public URL."},"flow":{"type":["null","string"],"description":"Flow executed on registration; null when the stored form has none."},"localeResourceCount":{"type":"integer","description":"Number of locale resource directories the form uses.","format":"int32"},"hasForm":{"type":"boolean","description":"Whether the form declares any fields."}},"additionalProperties":false,"description":"Enrolment form list entry."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/enrolmentForms":{"get":{"tags":["EnrolmentForms"],"summary":"List enrolment forms","description":"Ordered by name. A form whose YAML cannot be parsed is left out.","parameters":[{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Enrolment forms returned.","content":{"text/plain":{"schema":{"type":"array","items":{"description":"Enrolment form list entry.","$ref":"#/components/schemas/EnrolmentFormListItem"}}},"application/json":{"schema":{"type":"array","items":{"description":"Enrolment form list entry.","$ref":"#/components/schemas/EnrolmentFormListItem"}}},"text/json":{"schema":{"type":"array","items":{"description":"Enrolment form list entry.","$ref":"#/components/schemas/EnrolmentFormListItem"}}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the `tenant.configuration.enrolment:read` scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"The tenant does not exist.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Create enrolment form

> Send either \`flow\` (and optionally \`localization\`) or the whole form as \`yaml\`. Example: \`{ "name": "signup", "flow": "registration", "localization": { "resources": \["/locales/fields/"] } }\`.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"EnrolmentForms"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.configuration.enrolment:write"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"CreateEnrolmentFormRequest":{"required":["name"],"type":"object","properties":{"name":{"minLength":1,"type":"string","description":"Form name, 1 to 50 letters, digits, hyphens or underscores; becomes a public URL segment; `locales` is reserved. Else 400; 409 if a layout already has this name."},"flow":{"type":["null","string"],"description":"Flow executed on registration. Required unless `yaml` is used. Must name an existing registration flow, else 400."},"localization":{"description":"Localization wiring. Omitted means no locale resources.","$ref":"#/components/schemas/EnrolmentFormLocalization"},"yaml":{"type":["null","string"],"description":"Complete form as YAML, saved as sent. Exclusive with `flow` and `localization`; not blank, else 400."}},"additionalProperties":false,"description":"Request body to create an enrolment form."},"EnrolmentFormLocalization":{"type":"object","properties":{"resources":{"type":"array","items":{"type":"string"},"description":"Locale resource directories, e.g. `/locales/fields/`. Order matters: the last directory wins for a duplicate key. A blank entry is refused with 400; a missing directory is accepted."}},"additionalProperties":false,"description":"Localization wiring of a form."},"EnrolmentFormDefinition":{"required":["localization","name","yaml"],"type":"object","properties":{"name":{"type":"string","description":"Form name, last segment of its public URL `/{tenantId}/{name}`."},"flow":{"type":["null","string"],"description":"Flow executed on registration; null when the stored form has none (a typed save requires one)."},"localization":{"description":"Localization wiring.","$ref":"#/components/schemas/EnrolmentFormLocalization"},"yaml":{"type":"string","description":"The form as YAML, exactly as saved."}},"additionalProperties":false,"description":"Full enrolment form definition."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/enrolmentForms":{"post":{"tags":["EnrolmentForms"],"summary":"Create enrolment form","description":"Send either `flow` (and optionally `localization`) or the whole form as `yaml`. Example: `{ \"name\": \"signup\", \"flow\": \"registration\", \"localization\": { \"resources\": [\"/locales/fields/\"] } }`.","parameters":[{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Form name and either the typed fields or `yaml`.","content":{"application/json":{"schema":{"description":"Request body to create an enrolment form.","$ref":"#/components/schemas/CreateEnrolmentFormRequest"}},"text/json":{"schema":{"description":"Request body to create an enrolment form.","$ref":"#/components/schemas/CreateEnrolmentFormRequest"}},"application/*+json":{"schema":{"description":"Request body to create an enrolment form.","$ref":"#/components/schemas/CreateEnrolmentFormRequest"}}},"required":true},"responses":{"201":{"description":"Enrolment form created.","content":{"text/plain":{"schema":{"description":"Full enrolment form definition.","$ref":"#/components/schemas/EnrolmentFormDefinition"}},"application/json":{"schema":{"description":"Full enrolment form definition.","$ref":"#/components/schemas/EnrolmentFormDefinition"}},"text/json":{"schema":{"description":"Full enrolment form definition.","$ref":"#/components/schemas/EnrolmentFormDefinition"}}}},"400":{"description":"Name, flow or resulting configuration is invalid.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the `tenant.configuration.enrolment:write` scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"The tenant does not exist.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"409":{"description":"A form with this name already exists.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Get enrolment form

> Typed properties plus the exact YAML in \`yaml\`.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"EnrolmentForms"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.configuration.enrolment:read"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"EnrolmentFormDefinition":{"required":["localization","name","yaml"],"type":"object","properties":{"name":{"type":"string","description":"Form name, last segment of its public URL `/{tenantId}/{name}`."},"flow":{"type":["null","string"],"description":"Flow executed on registration; null when the stored form has none (a typed save requires one)."},"localization":{"description":"Localization wiring.","$ref":"#/components/schemas/EnrolmentFormLocalization"},"yaml":{"type":"string","description":"The form as YAML, exactly as saved."}},"additionalProperties":false,"description":"Full enrolment form definition."},"EnrolmentFormLocalization":{"type":"object","properties":{"resources":{"type":"array","items":{"type":"string"},"description":"Locale resource directories, e.g. `/locales/fields/`. Order matters: the last directory wins for a duplicate key. A blank entry is refused with 400; a missing directory is accepted."}},"additionalProperties":false,"description":"Localization wiring of a form."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/enrolmentForms/{name}":{"get":{"tags":["EnrolmentForms"],"summary":"Get enrolment form","description":"Typed properties plus the exact YAML in `yaml`.","parameters":[{"name":"name","in":"path","description":"Form name: 1 to 100 letters, digits, underscores, hyphens, dots or spaces.","required":true,"schema":{"type":"string"}},{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Enrolment form returned.","content":{"text/plain":{"schema":{"description":"Full enrolment form definition.","$ref":"#/components/schemas/EnrolmentFormDefinition"}},"application/json":{"schema":{"description":"Full enrolment form definition.","$ref":"#/components/schemas/EnrolmentFormDefinition"}},"text/json":{"schema":{"description":"Full enrolment form definition.","$ref":"#/components/schemas/EnrolmentFormDefinition"}}}},"400":{"description":"Name is invalid.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the `tenant.configuration.enrolment:read` scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"No layout with this name, or it is not a `customerRegistration`, or the tenant does not exist.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"409":{"description":"The form's YAML cannot be parsed.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Save enrolment form

> Replaces the form named in the route: send either the typed fields or \`yaml\`, as described for \`POST /enrolmentForms\`.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"EnrolmentForms"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.configuration.enrolment:write"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"SaveEnrolmentFormRequest":{"type":"object","properties":{"flow":{"type":["null","string"],"description":"Flow executed on registration. Required unless `yaml` is used. Must name an existing registration flow, else 400."},"localization":{"description":"Localization wiring. Omitted keeps the stored directories; provided replaces them (an empty list clears them).","$ref":"#/components/schemas/EnrolmentFormLocalization"},"yaml":{"type":["null","string"],"description":"Complete form as YAML, saved as sent. Exclusive with `flow` and `localization`; not blank, else 400. Only way to save a form whose YAML no longer parses."}},"additionalProperties":false,"description":"Request body to save an enrolment form."},"EnrolmentFormLocalization":{"type":"object","properties":{"resources":{"type":"array","items":{"type":"string"},"description":"Locale resource directories, e.g. `/locales/fields/`. Order matters: the last directory wins for a duplicate key. A blank entry is refused with 400; a missing directory is accepted."}},"additionalProperties":false,"description":"Localization wiring of a form."},"EnrolmentFormDefinition":{"required":["localization","name","yaml"],"type":"object","properties":{"name":{"type":"string","description":"Form name, last segment of its public URL `/{tenantId}/{name}`."},"flow":{"type":["null","string"],"description":"Flow executed on registration; null when the stored form has none (a typed save requires one)."},"localization":{"description":"Localization wiring.","$ref":"#/components/schemas/EnrolmentFormLocalization"},"yaml":{"type":"string","description":"The form as YAML, exactly as saved."}},"additionalProperties":false,"description":"Full enrolment form definition."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/enrolmentForms/{name}":{"put":{"tags":["EnrolmentForms"],"summary":"Save enrolment form","description":"Replaces the form named in the route: send either the typed fields or `yaml`, as described for `POST /enrolmentForms`.","parameters":[{"name":"name","in":"path","description":"Form name: 1 to 100 letters, digits, underscores, hyphens, dots or spaces.","required":true,"schema":{"type":"string"}},{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"New flow and localization, or the whole form as `yaml`.","content":{"application/json":{"schema":{"description":"Request body to save an enrolment form.","$ref":"#/components/schemas/SaveEnrolmentFormRequest"}},"text/json":{"schema":{"description":"Request body to save an enrolment form.","$ref":"#/components/schemas/SaveEnrolmentFormRequest"}},"application/*+json":{"schema":{"description":"Request body to save an enrolment form.","$ref":"#/components/schemas/SaveEnrolmentFormRequest"}}},"required":true},"responses":{"200":{"description":"Enrolment form saved.","content":{"text/plain":{"schema":{"description":"Full enrolment form definition.","$ref":"#/components/schemas/EnrolmentFormDefinition"}},"application/json":{"schema":{"description":"Full enrolment form definition.","$ref":"#/components/schemas/EnrolmentFormDefinition"}},"text/json":{"schema":{"description":"Full enrolment form definition.","$ref":"#/components/schemas/EnrolmentFormDefinition"}}}},"400":{"description":"Name, flow or resulting configuration is invalid.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the `tenant.configuration.enrolment:write` scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"No layout with this name, or it is not a `customerRegistration`, or the tenant does not exist.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"409":{"description":"The form's YAML cannot be parsed and the request does not replace it entirely.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Delete enrolment form

> The public URL then returns 404, including for distributed links (QR codes, campaigns, short links); creating a form with the same name restores it. Confirm with the user, naming the form, before calling this.\
> A form used as another layout's \`errorLayoutName\` cannot be deleted. Locale resource directories are kept.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"EnrolmentForms"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.configuration.enrolment:write"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/enrolmentForms/{name}":{"delete":{"tags":["EnrolmentForms"],"summary":"Delete enrolment form","description":"The public URL then returns 404, including for distributed links (QR codes, campaigns, short links); creating a form with the same name restores it. Confirm with the user, naming the form, before calling this.\nA form used as another layout's `errorLayoutName` cannot be deleted. Locale resource directories are kept.","parameters":[{"name":"name","in":"path","description":"Form name: 1 to 100 letters, digits, underscores, hyphens, dots or spaces.","required":true,"schema":{"type":"string"}},{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Enrolment form deleted."},"400":{"description":"Name is invalid.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the `tenant.configuration.enrolment:write` scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"Enrolment form not found, or the tenant does not exist.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"409":{"description":"The form is used as an error layout by another layout, or a YAML cannot be parsed.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thewalletcrew.io/api-reference/internal/enrolment-and-messaging/enrolment-forms.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
