# Create Pocket Portal

This endpoint creates a new portal for a customer.

Endpoint: POST /api/v2/pockets/{pocket_id}/portals/
Version: Version: 1c2b526f
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)
    A chain code returned by `GET /api/v2/crypto-chains/`, such as `ETH`.

## 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)
    A chain code returned by `GET /api/v2/crypto-chains/`, such as `ETH`.

  - `wallet_address` (string, required)

  - `address_tag` (any)
    The destination tag or memo that sets this deposit address apart from others sharing the same address. Give senders the address and this tag, and tell them to include the tag, or the deposit cannot be credited. Null on chains without tags.

  - `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)

