---
title: "Create Form"
method: POST
path: "/v3/portals/{portalId}/forms"
tags: ["Portal Forms"]
---

# Create Form

`POST /v3/portals/{portalId}/forms`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v3/portals/{portalId}/forms`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Creates a custom form for a portal.

* `developer_registration` forms appear in the portal's developer signup flow
* `api_registration` forms are shown to developers when they request access to a specific API.

Requirements:

* Every form's `fields` array must include exactly one `submit` field.
* `developer_registration` forms must also include the built-in `full_name` and `email` fields.

## Path parameters

- `portalId` string, uuid, required

## Request body

- union: Request body for creating a form, discriminated by `type`. The required fields in `fields` depend on the form type. * `full_name` and `email` are required for `developer_registration` forms. * `api_id` is required for `api_registration` forms. Returns a 400 error if a required field is missing.
  - intersection
    - [`CreateDeveloperRegistrationFormRequest`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCreateDeveloperRegistrationFormRequest)
  - intersection
    - [`CreateApiRegistrationFormRequest`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCreateApiRegistrationFormRequest)

## Response `201`

A custom form belonging to a portal.

- CustomFormResponse: A custom form configured for a developer portal, including its fields.
  - `id` string, uuid, required: Contains a unique identifier used for this resource.
  - `name` string, required: A unique, URL-friendly identifier for the form (lowercase letters, digits, and hyphens). For `developer_registration` forms, this is always `developer-registration`. For `api_registration` forms, you choose the name when creating the form and can change it later.
  - `type` 'developer_registration' | 'api_registration', required: The kind of form. Determines which fields are required and where developers see the form on the portal.
  - `status` 'published' | 'unpublished', required: Whether the form is visible to developers on the portal. `unpublished` forms aren't shown to developers; for the `developer_registration` form, a default form is shown instead.
  - `fields` CustomFormField[], required: The form's fields, in the order they're displayed. Must include exactly one `submit` field. `developer_registration` forms must also include the built-in `full_name` and `email` fields.
    - union: A field on a form, as returned by the API. The `type` property determines what kind of field it is. Fields that came with the form by default carry a `built_in` flag.
      - intersection
        - [`CustomFormContentField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormContentField)
      - intersection
        - [`CustomFormTextField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormTextField)
      - intersection
        - [`CustomFormEmailField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormEmailField)
      - intersection
        - [`CustomFormNumberField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormNumberField)
      - intersection
        - [`CustomFormTextareaField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormTextareaField)
      - intersection
        - [`CustomFormSelectField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormSelectField)
      - intersection
        - [`CustomFormCheckboxField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormCheckboxField)
      - intersection
        - [`CustomFormSubmitField`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCustomFormSubmitField)
  - `created_at` string, date-time, required: An ISO-8601 timestamp representation of entity creation date.
  - `updated_at` string, date-time, required: An ISO-8601 timestamp representation of entity update date.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict

## Changes

- **2026-11-19** `3b071797f6e4`: 9 info
  - the response property `fields/items/oneOf[#/components/schemas/CustomFormCheckboxField]/required` became required for the status `201`
  - the response property `fields/items/oneOf[#/components/schemas/CustomFormEmailField]/required` became required for the status `201`
  - the response property `fields/items/oneOf[#/components/schemas/CustomFormNumberField]/required` became required for the status `201`
  - the response property `fields/items/oneOf[#/components/schemas/CustomFormSelectField]/oneOf[#/components/schemas/CustomFormMultiSelectField]/options/items/selected` became required for the status `201`
  - …5 more
- **2026-10-15** `7aab863a6daa`: 1 breaking, 2 warning
  - added `#/components/schemas/InvalidParameterMinimumTime, #/components/schemas/InvalidParameterMaximumTime` to the `invalid_parameters/items/` response property `oneOf` list for the response status `400`
  - added the new `key_invalid` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
  - added the new `unique` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
- …earlier changes not shown

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v3/portals/:portalId/forms/post.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-go-sdk/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4?raw)
