get

@GET(value = "api/v1/users/{id}")
abstract fun get(@Path(value = "id") userId: String, @Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString()): Call<User>

Retrieves a user by their ID.

Return

A Call object representing the asynchronous user retrieval call.

Parameters

userId

The ID of the user.

correlationId

The correlation ID used for tracking the request. It is generated using UUID.randomUUID().toString() by default.