---
title: "POST /subaccounts/approval/prepare"
method: POST
path: "/subaccounts/approval/prepare"
tags: ["Subaccounts"]
---

# POST /subaccounts/approval/prepare

`POST /subaccounts/approval/prepare`

## Request

- Base URL: `https://arbitrum.gmxapi.io/v1`
- URL: `https://arbitrum.gmxapi.io/v1/subaccounts/approval/prepare`
- Auth: none required
- TypeScript: <https://skmtc.dev/gmx/apis/gmx-io-gmx-public-api/docs/subaccounts/approval/prepare/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- ApprovalPrepareRequest
  - `signingNetwork` string
  - `maxAllowedCount` string, required
  - `expiresAt` string, required
  - `shouldAdd` boolean, required
  - `subaccountAddress` string, required
  - `account` string, required

## Response `200`

Success

- ApprovalPrepareResponse
  - `nonce` string, required
  - `relayRouterAddress` string, required
  - `primaryType` string, required
  - `message` RecordStringAny, required: Construct a type with a set of properties K of type T
  - `types` RecordStringNameStringTypeStringArray, required: Construct a type with a set of properties K of type T
  - `domain` object, required
    - `verifyingContract` string, required
    - `chainId` number, double, required
    - `version` string, required
    - `name` string, required

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/gmx/apis/gmx-io-gmx-public-api.md) - [All operations](https://skmtc.dev/gmx/apis/gmx-io-gmx-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gmx/apis/gmx-io-gmx-public-api/revisions/f140bd95ce1d?raw)
