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

# POST /subaccounts/approval/prepare

`POST /subaccounts/approval/prepare`

## 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.net/gmx/apis/gmx-io-gmx-public-api.md) · [All operations](https://skmtc.net/gmx/apis/gmx-io-gmx-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gmx/gmx-io-gmx-public-api/revisions/b3be06047493/schema)
