Page cover

User API

Looking for an older version? Please click this link Previous versions to view previous API versions.

Get User Data

get

Retrieves the aggregated data for a single user, including their risk score and a list of related predictions.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
user_idstringRequired

The ID of the user whose data is being retrieved.

Query parameters
fields[users]string · enumOptional

The additional fields of the user to be returned.

Example: predictions,analyticsPossible values:
includestring · enumOptional

The included resources of the user.

Example: journeysPossible values:
Header parameters
x-scope-partner-idstringRequired

The partner id, please contact Yofi to get the partner id

x-scope-app-idstringRequired

The app id

x-scope-organization-idstringRequired

The organization id

Responses
200

Successful response with user data and related predictions.

application/json
get
/users/{user_id}

Get User Predictions

get

Retrieves the predictions for a specific user.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
user_idstringRequired

The ID of the user whose data is being retrieved.

Query parameters
isForceboolean · enumOptional

Whether to force calculate the features.

Possible values:
Header parameters
x-scope-partner-idstringRequired

The partner id, please contact Yofi to get the partner id

x-scope-app-idstringRequired

The app id

x-scope-organization-idstringRequired

The organization id

Responses
200

Successful response with user predictions.

application/json
get
/users/{user_id}/predictions

Last updated

Was this helpful?