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

import java.lang.Exception;
import java.util.List;
import org.openapis.openapi.AriesJava;
import org.openapis.openapi.models.errors.ErrorResponse;
import org.openapis.openapi.models.operations.CreateApiClientRequest;
import org.openapis.openapi.models.operations.CreateApiClientResponse;

public class Application {

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

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

        CreateApiClientRequest req = CreateApiClientRequest.builder()
                .name("<value>")
                .scopes(List.of(
                    "<value 1>"))
                .redirectUris(List.of(
                    "<value 1>",
                    "<value 2>"))
                .build();

        CreateApiClientResponse res = sdk.clients().create()
                .request(req)
                .call();

        if (res.object().isPresent()) {
            // handle response
        }
    }
}
{
  "client_id": "<string>",
  "client_secret": "<string>",
  "name": "<string>",
  "scopes": [
    "<string>"
  ],
  "redirect_uris": [
    "<string>"
  ],
  "domains": [
    "<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
name
string
required

Client name

scopes
string[]
required

List of allowed scopes

redirect_uris
string[]
required

List of allowed redirect URIs

domains
string[]

List of allowed domains (optional)

Response

Client created successfully

client_id
string

OAuth2 client ID

client_secret
string

OAuth2 client secret (shown only once)

name
string

Client name

scopes
string[]

List of allowed scopes

redirect_uris
string[]

List of allowed redirect URIs

domains
string[]

List of allowed domains

created_at
string<date-time>

Client creation timestamp

updated_at
string<date-time>

Client last update timestamp