authorize

@POST(value = "api/v1/authorize")
abstract fun authorize(@Body request: AuthorizationRequest, @Header(value = "dataos-correlation-id") correlationId: String = UUID.randomUUID().toString()): Call<AuthorizationResponse>

This method is used to authorize a user based on the provided authorization context.

Return

A Call object representing the asynchronous authorization response.

Parameters

request

The authorization request for authorizing the user.

correlationId

The correlation ID for tracking the request (default: randomly generated UUID).