GET
/
customers
/
{customerID}
/
subroles
curl --request GET \
  --url https://api.joinworth.com/auth/api/v1/customers/{customerID}/subroles \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "message": "Customer subroles fetched successfully.",
  "data": [
    {
      "code": "cro",
      "label": "CRO",
      "id": "cdc69893-6d14-4ba5-a8a8-a0ba79f966b0",
      "display_name": "CRO"
    },
    {
      "code": "risk_analyst",
      "label": "Risk Analyst",
      "id": "cececa89-aa54-4433-8184-ec0598392811",
      "display_name": "Risk Analyst"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customerID
string
required
Example:

"22f210e4-4455-4107-b132-97e8478546ea"

Response

200
application/json; charset=utf-8
OK
status
string
required
message
string
required
data
object[]
required