getRoles

@GET(value = "organizations/{organization_id}/roles")
abstract suspend fun getRoles(@Path(value = "organization_id") organizationId: String, @Query(value = "limit") limit: Int? = null, @Query(value = "offset") offset: Int? = null): ClerkResult<List<Role>, ClerkErrorResponse>

Retrieves roles for a specific organization.

Return

A ClerkResult containing either a list of Roles on success or a ClerkErrorResponse on failure

Parameters

organizationId

The unique identifier of the organization

limit

Maximum number of roles to return (optional)

offset

Number of roles to skip for pagination (optional)

See also