Skip to main content
POST
/
v1
/
users
Java (SDK)
package hello.world;

import java.lang.Exception;
import org.openapis.openapi.AriesJava;
import org.openapis.openapi.models.components.CreateUserRequest;
import org.openapis.openapi.models.errors.ErrorResponse;
import org.openapis.openapi.models.operations.CreateUserResponse;

public class Application {

    public static void main(String[] args) throws ErrorResponse, Exception {

        AriesJava sdk = AriesJava.builder()
                .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
            .build();

        CreateUserRequest req = CreateUserRequest.builder()
                .email("Aglae92@gmail.com")
                .password("3yANo2O4ArxjvvU")
                .country("British Indian Ocean Territory (Chagos Archipelago)")
                .build();

        CreateUserResponse res = sdk.users().create()
                .request(req)
                .call();

        if (res.createUserResponse().isPresent()) {
            // handle response
        }
    }
}
{
  "id": 123,
  "email": "<string>",
  "country": "<string>",
  "auth": {
    "access_token": "<string>",
    "refresh_token": "<string>",
    "role": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://finance.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string
required

Must be a valid email address

password
string
required

Must be a strong password

Minimum string length: 8
country
string
required

Must be a valid 3-letter country code

Required string length: 3
Pattern: ^[a-zA-Z]{3}$

Response

User created successfully

id
integer<int64>
email
string
country
string
auth
object
created_at
string<date-time>
updated_at
string<date-time>