Skip to main content
POST
/
accounts
Create an account
curl --request POST \
  --url https://api.rnbi.magent.finance/accounts/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Reap-Version: <reap-version>' \
  --data '
{
  "ownerType": "USER",
  "ownerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "signers": {}
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "ACTIVE",
  "ownerType": "USER",
  "ownerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "chainAddresses": [
    {
      "chainId": "ETHEREUM_MAINNET",
      "address": "<string>"
    }
  ],
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

API key as Bearer token

Headers

Reap-Version
enum<string>
required

API version (YYYY-MM-DD)

Available options:
2025-02-14

Body

ownerType
enum<string>
required

Type of entity that owns this account. Must match the project account ownership mode (USER or COMPANY).

Available options:
USER,
COMPANY
ownerId
string<uuid>
required

Owner entity ID. Must be a user ID (for USER ownerType) or company ID (for COMPANY ownerType).

signers
object
required

Signer configurations per protocol. The signer is required for authorizing withdrawals. Use GET /accounts/auth-message to get the message to sign.

Response

Response for status 200

id
string<uuid>
required

Unique account identifier

status
enum<string>
required

Current account status

Available options:
ACTIVE,
RESTRICTED
ownerType
enum<string>
required

Type of entity that owns this account

Available options:
USER,
COMPANY
ownerId
string<uuid>
required

Owner entity ID (user or company)

chainAddresses
object[]
required

Deposit addresses by chain

createdAt
string
required

ISO 8601 timestamp of creation

Example:

"2024-01-15T10:30:00Z"

updatedAt
string
required

ISO 8601 timestamp of last update

Example:

"2024-01-15T10:35:00Z"