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

# POST /register_account_and_allowance

`POST /register_account_and_allowance`

## Request body

- AccountIdAllowanceOauthJson
  - `account_id` string, required
  - `allowance` integer, required
  - `oauth_token` string, required

## Response `201`

Added Oauth token {oauth_token: https://securetoken.google.com/pagoda-oboarding-dev:Op4h13AQozM4CikngfHiFVC2xhf2, account_id: example.near, allowance: 90000000000000 to Relayer DB

## Other responses

- `500` — 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

---

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