# Create Pocket Portal

This endpoint creates a new portal for a customer.

Endpoint: POST /api/v2/pockets/{pocket_id}/portals/
Version: Version: 0d14821f
Security: CodeBearer

## Security:

  - `CodeBearer` (unknown)
    oauth2 scopes: pockets.write, pockets.read

## Path parameters:

  - `pocket_id` (string, required)

## Request fields (application/json):

  - `name` (string, required)

  - `type` (string, required)

  - `id` (string, required)

  - `chain` (string, required)
    `ETH` is supported at this time.

## Response 201:

  - `201` (unknown)
    Successful Response

## Response 201 fields (application/json):

  - `id` (string, required)

  - `pocket_id` (string, required)

  - `time_created` (string, required)

  - `name` (string, required)
    Portal name

  - `status` (string, required)
    Portal status
    Enum: "OPEN", "CLOSED", "PENDING", "REJECTED"

  - `type` (string, required)

  - `chain` (string, required)
    `ETH` is supported at this time.

  - `wallet_address` (string, required)

  - `routing_number` (string, required)
    Routing number

  - `account_number` (string, required)
    Account number

  - `payment_rails` (array, required)
    Specifies which payment rails (ACH, WIRE, ON_US) are accepted.

## Response 404:

  - `404` (unknown)
    Not found

## Response 422:

  - `422` (unknown)
    Validation Error

## Response 422 fields (application/json):

  - `detail` (array)

  - `detail.loc` (array, required)

  - `detail.msg` (string, required)

  - `detail.type` (string, required)

  - `detail.input` (any)

  - `detail.ctx` (object)

