---
title: "POST /create_account_atomic"
method: POST
path: "/create_account_atomic"
tags: ["crate"]
---

# POST /create_account_atomic

`POST /create_account_atomic`

## Request body

- AccountIdAllowanceOauthSDAJson
  - `account_id` string, required
  - `allowance` integer, required
  - `oauth_token` string, required
  - `signed_delegate_action` SignedDelegateAction, required — unresolved $ref

## Response `201`

Added Oauth token https://securetoken.google.com/pagoda-oboarding-dev:Op4h13AQozM4CikngfHiFVC2xhf2 for account_id example.near with allowance (in Gas) 90000000000000 to Relayer DB. Near onchain account creation response: {create_account_sda_result:?}

## Other responses

- `400` — Error: oauth_token https://securetoken.google.com/pagoda-oboarding-dev:Op4h13AQozM4CikngfHiFVC2xhf2 has already been used to register an account. You can only register 1 account per oauth_token
- `403` — Invalid account_id: invalid_account_id.near
- `500` — Error creating oauth token https://securetoken.google.com/pagoda-oboarding-dev:Op4h13AQozM4CikngfHiFVC2xhf2 in Relayer DB: {err:?}

---

[API](https://skmtc.dev/near/apis/relayer.md) · [All operations](https://skmtc.dev/near/apis/relayer/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/near/relayer/revisions/6670717c9a6f/schema)
