Steps partners can use to make GraphQL API calls to channel customer tenants
search cancel

Steps partners can use to make GraphQL API calls to channel customer tenants

book

Article ID: 284287

calendar_today

Updated On:

Products

CloudHealth

Issue/Introduction

The steps detailed below will allow partners to make GraphQL API calls to their customers:

Resolution

1. Pass CH API key in this request:

mutation {
loginAPI(apiKey: "XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX"){
accessToken
refreshToken
}
}

2. Pass access token to Authentication Bearer token section.
3. Pass refresh token in below request.
partner_tenant_id = partner customer id (CH Tenant ID, not client API id)
msp_client_id = channel customer client api id
After this call, you will receive access and refresh token of channel customer

mutation {
getAccessToken(input: {
refreshToken: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
customer: "crn:<partner_tenant_id>:msp_client/<msp_client_id>",
justification: "Justification text"
}){
accessToken
refreshToken
}
}

4. Then pass new access token in Authentication Bearer token and then make any GraphQL API call.