Jobber API in make.com

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"]
	}
}

}

1 Like

Did you have luck getting this to work?

not yet
I am unable to authenticate

@aasthanarula Did this worked in Jobber for you?

Princy Jain
Make consultant,
For consulting support: Follow up Automated

Hi @Princy
No it didn’t

I know you haven’t opt for hiring someone but you can hire if you are still looking for solution.

As this is not a big issue. It is doable i know as i have developed many custom apps…