I am making a custom app for jobber in make.com but in the connection I am getting bad request error
Can anyone check what I am missing:
{
“authorize”: {
“url”: “https://api.getjobber.com/api/oauth/authorize?response_type=code&client_id={{ifempty(parameters.clientId, common.clientId)}}&redirect_uri=https://www.make.com/oauth/cb/jobber”,
“response”: {
“temp”: {
“code”: “{{query.code}}”
}
}
},
"token": {
"url": "https://api.getjobber.com/oauth/token",
"method": "POST",
"body": {
"code": "{{temp.code}}",
"client_id": "{{ifempty(parameters.clientId, common.clientId)}}",
"grant_type": "authorization_code",
"redirect_uri": "https://www.make.com/oauth/cb/jobber",
"client_secret": "{{ifempty(parameters.clientSecret, common.clientSecret)}}"
},
"type": "urlencoded",
"response": {
"data": {
"accessToken": "{{body.access_token}}"
}
},
"log": {
"sanitize": [
"request.body.code",
"request.body.client_secret",
"response.body.access_token"
]
}
},
"info": {
"url": "https://api.getjobber.com/api/graphql",
"method": "POST",
"headers": {
"Authorization": "Bearer {{connection.accessToken}}"
},
"body": {
"query": "query SampleQuery { clients { nodes { id firstName lastName billingAddress { city } } totalCount } }",
"operationName": "SampleQuery"
},
"response": {
"data": {
"clients": "{{body.clients}}"
}
},
"log": {
"sanitize": ["request.headers.authorization"]
}
}
}