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..