Ir al contenido

List credentials

GET
/v1/credentials
curl --request GET \
--url https://integrador.avalisto.com/v1/credentials \
--header 'Authorization: Bearer <token>'

Lists the credentials you can see: members see their own, admins those of the whole company. The token itself is never returned.

Media typeapplication/json
object
data
required

Credentials you can see

Array<object>
object
id
required

Credential id

string
name
required

Name given by the user

string
prefix
required

First characters of the token, to recognise it in a list

string
scopes
required

Permissions granted to the credential

Array<string>
Allowed values: products:read rental:read rental:write home:read home:write community:read community:write portfolio:read account:read account:write
status
required

Credential status

string
Allowed values: active revoked expired
environment
required

Environment of the credential

string
Allowed values: live test
createdAt
required

ISO 8601 UTC

string
expiresAt
required

Null = never expires

string
nullable
lastUsedAt
required

Null = never used

string
nullable
fundName

Only for servicer accounts: name of the fund the credential belongs to

string
nullable
nextCursor
required

Opaque cursor for the next page; null when there are no more results

string
nullable
count
required

Number of items returned in this page

number

Example

{
"data": [
{
"id": "9f2c5c0a7d1e4b6f",
"name": "Production integration",
"prefix": "ava_live_ab1",
"scopes": [
"products:read"
],
"status": "active",
"environment": "live",
"createdAt": "2026-10-26T09:14:00.000Z",
"expiresAt": "2027-10-26T09:14:00.000Z",
"lastUsedAt": null
}
],
"nextCursor": null,
"count": 1
}

Invalid request (validation_error, invalid_cursor, missing_idempotency_key)

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Part of the contract.

string
message
required

Developer-oriented message in English

string
requestId
required

Correlation id; the same value as the X-Request-Id response header

string
details

Only for validation_error: which fields failed

Array<object>
object
field
required

Field that failed validation

string
issue
required

What is wrong with the field

string

Example

{
"error": {
"code": "validation_error",
"message": "Request validation failed",
"requestId": "3f6c2a0e-1b7d-4c55-9a52-2f6c1f0d9e11",
"details": [
{
"field": "monthlyRent",
"issue": "must be a positive number"
}
]
}
}

Missing, invalid, expired or revoked credential

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Part of the contract.

string
message
required

Developer-oriented message in English

string
requestId
required

Correlation id; the same value as the X-Request-Id response header

string
details

Only for validation_error: which fields failed

Array<object>
object
field
required

Field that failed validation

string
issue
required

What is wrong with the field

string

Example

{
"error": {
"code": "validation_error",
"message": "Request validation failed",
"requestId": "3f6c2a0e-1b7d-4c55-9a52-2f6c1f0d9e11",
"details": [
{
"field": "monthlyRent",
"issue": "must be a positive number"
}
]
}
}

Missing scope (forbidden_scope) or product not available (product_not_available)

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Part of the contract.

string
message
required

Developer-oriented message in English

string
requestId
required

Correlation id; the same value as the X-Request-Id response header

string
details

Only for validation_error: which fields failed

Array<object>
object
field
required

Field that failed validation

string
issue
required

What is wrong with the field

string

Example

{
"error": {
"code": "validation_error",
"message": "Request validation failed",
"requestId": "3f6c2a0e-1b7d-4c55-9a52-2f6c1f0d9e11",
"details": [
{
"field": "monthlyRent",
"issue": "must be a positive number"
}
]
}
}

Resource not found (not_found)

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Part of the contract.

string
message
required

Developer-oriented message in English

string
requestId
required

Correlation id; the same value as the X-Request-Id response header

string
details

Only for validation_error: which fields failed

Array<object>
object
field
required

Field that failed validation

string
issue
required

What is wrong with the field

string

Example

{
"error": {
"code": "validation_error",
"message": "Request validation failed",
"requestId": "3f6c2a0e-1b7d-4c55-9a52-2f6c1f0d9e11",
"details": [
{
"field": "monthlyRent",
"issue": "must be a positive number"
}
]
}
}

Rate limit or daily quota exceeded; see Retry-After

Media typeapplication/json
object
error
required
object
code
required

Stable error code. Part of the contract.

string
message
required

Developer-oriented message in English

string
requestId
required

Correlation id; the same value as the X-Request-Id response header

string
details

Only for validation_error: which fields failed

Array<object>
object
field
required

Field that failed validation

string
issue
required

What is wrong with the field

string

Example

{
"error": {
"code": "validation_error",
"message": "Request validation failed",
"requestId": "3f6c2a0e-1b7d-4c55-9a52-2f6c1f0d9e11",
"details": [
{
"field": "monthlyRent",
"issue": "must be a positive number"
}
]
}
}