Docs

Developers / API Reference / Demo / Address API

Models

The ApiErrorResponse object

summary: Api error response model

Field

Type

Required

Description

status

string

No

Default: error.

code

integer

Yes

Duplicates the HTTP status; use `error_code`. Removed in v3.

message

string

Yes

—

error_code

string | null

No

Stable, machine-readable error code, e.g. `auth.unauthenticated`. Additive-only.

data

any | null

No

—

The ApiFailResponse object

summary: Api fail response model

Field

Type

Required

Description

status

string

No

Default: fail.

message

string

Yes

—

error_code

string | null

No

Stable, machine-readable error code, e.g. `auth.unauthenticated`. Additive-only.

data

any | null

No

—

The ApiSuccessResponse object

summary: Api success response model

Field

Type

Required

Description

status

string

No

Default: success.

data

any | null

No

—

The RequestVerificationRequestCom object

Field

Type

Required

Description

email

string | null

No

Deprecated and ignored. Ospree does not send anything to this address. The verification link is returned in the response body, and delivering it to the wallet holder is the caller’s responsibility. Any value supplied is discarded rather than stored.

The ScreenAddressRequestCom object

Field

Type

Required

Description

scan_for_risk

boolean | null

No

Whether to scan for risk when creating new address

provider_name

string | null

No

The name of the risk provider to screen with, for example `RDBIG`. Leave it out, or send `null`, to use your business’s default risk provider. When sent, it must be a non-empty provider name: a blank or whitespace-only value is rejected with 422.

is_self_hosted

boolean | null

No

Whether the wallet is self-hosted

account_ref_id

string | null

No

The reference ID of the account

link_type

integer | null

No

The type of link