Download OpenAPI specification:
Creates an account for the authenticated user. The user is extracted from the JWT token.
currency required | string (CurrencyEnum) Value: "USD"
|
{- "currency": "USD"
}
{- "id": 0,
- "owner": "string",
- "balance": 0,
- "currency": "USD",
- "created_at": "2019-08-24T14:15:22Z"
}
Registers a new user and returns the user's public info.
username required | string <= 255 characters |
password required | string >= 6 characters |
full_name required | string <= 255 characters |
email required | string <email> <= 254 characters |
{- "username": "string",
- "password": "string",
- "full_name": "string",
- "email": "user@example.com"
}
{- "id": 0,
- "username": "string",
- "full_name": "string",
- "email": "user@example.com",
- "password_changed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
Returns a paginated list of accounts belonging to the authenticated user.
page | integer Page number |
page_size | integer Number of results per page |
[- {
- "id": 0,
- "owner": "string",
- "balance": 0,
- "currency": "USD",
- "created_at": "2019-08-24T14:15:22Z"
}
]
Authenticates a user and returns JWT tokens, session ID, and user info.
username required | string |
password required | string |
{- "username": "string",
- "password": "string"
}
{- "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
- "access_token": "string",
- "access_token_expires_at": "2019-08-24T14:15:22Z",
- "refresh_token": "string",
- "refresh_token_expires_at": "2019-08-24T14:15:22Z",
- "user": {
- "id": 0,
- "username": "string",
- "full_name": "string",
- "email": "user@example.com",
- "password_changed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
}
OpenApi3 schema for this API. Format can be selected via content negotiation.
format | string Enum: "json" "yaml" |
lang | string Enum: "af" "ar" "ar-dz" "ast" "az" "be" "bg" "bn" "br" "bs" "ca" "ckb" "cs" "cy" "da" "de" "dsb" "el" "en" "en-au" "en-gb" "eo" "es" "es-ar" "es-co" "es-mx" "es-ni" "es-ve" "et" "eu" "fa" "fi" "fr" "fy" "ga" "gd" "gl" "he" "hi" "hr" "hsb" "hu" "hy" "ia" "id" "ig" "io" "is" "it" "ja" "ka" "kab" "kk" "km" "kn" "ko" "ky" "lb" "lt" "lv" "mk" "ml" "mn" "mr" "ms" "my" "nb" "ne" "nl" "nn" "os" "pa" "pl" "pt" "pt-br" "ro" "ru" "sk" "sl" "sq" "sr" "sr-latn" "sv" "sw" "ta" "te" "tg" "th" "tk" "tr" "tt" "udm" "ug" "uk" "ur" "uz" "vi" "zh-hans" "zh-hant" |
Transfers funds from one account to another. Both accounts must have the same currency and the user must own the source account.
from_account_id required | integer |
to_account_id required | integer |
amount required | integer <int64> [ -9223372036854776000 .. 9223372036854776000 ] Must be positive |
currency required | string |
{- "from_account_id": 0,
- "to_account_id": 0,
- "amount": -9223372036854776000,
- "currency": "string"
}
{- "id": 0,
- "from_account_id": 0,
- "to_account_id": 0,
- "amount": -9223372036854776000,
- "created_at": "2019-08-24T14:15:22Z"
}
Partially updates a user's details.
- If you're a **regular user**, you can only update yourself.
- If you're a **banker**, you can update anyone.
full_name | string <= 255 characters |
string <email> <= 254 characters | |
hashed_password | string >= 6 characters |
{- "full_name": "string",
- "email": "user@example.com",
- "hashed_password": "string"
}
{- "username": "string",
- "full_name": "string",
- "email": "user@example.com"
}
Validates the email and secret code. Marks user as verified if correct and not used before.
email_id required | string <email> |
secret_code required | string |
{- "email_id": "user@example.com",
- "secret_code": "string"
}
{- "is_verified": true
}