Skip to main content
POST
/
accounts
Create Account
curl --request POST \
  --url https://api.otim.com/v0/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entityId": "<string>",
  "name": "<string>",
  "metadata": {}
}
'
{
  "id": "acc_01JA1B2C3D4E5F6G7H8J9K0L",
  "entityId": "<string>",
  "name": "<string>",
  "type": "wallet",
  "chain": "base",
  "status": "active",
  "autoEarn": true,
  "availableBalance": "0",
  "currency": "USDC",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key prefixed with sk_.

Body

application/json
entityId
string
required

The ID of the Entity to create the Account for.

name
string

A display name for the Account.

metadata
object

Arbitrary key-value pairs to attach to the Account.

Response

Account created.

id
string
Example:

"acc_01JA1B2C3D4E5F6G7H8J9K0L"

entityId
string
name
string | null
type
string
Example:

"wallet"

chain
string
Example:

"base"

status
string
Example:

"active"

autoEarn
boolean

Automatically set based on your Platform Settings.

Example:

true

availableBalance
string
Example:

"0"

currency
string
Example:

"USDC"

createdAt
string<date-time>