I'm sending a list of parameters the SM8 API
The response I am getting is 200 OK, & email is being sent to the client, but the email itself does not show up in job diary (kind of not linked to specific job_uuid).
Here's the list of parameters that I'm passing to the API:
{
"to": "[email protected]",
"from": "[email protected]",
"subject": "It works",
"message": "This message confirms Email was sent correctly",
"htmlBody": "This message confirms Email was sent correctly",
"textBody": "This message confirms Email was sent correctly",
"job_uuid": job_uuid,
}
job_uuid is used from previously created job, and it is varified that it is correct (as I used this job_uuid to refer other pieces of codes, and it worked properly) Anyone see what the problem is?
Cheer
"template_uuid": template_uuid,
Additionaly i tried to use the template to see if it will link the email to specific job , but it did not bring any luck.
is there a reason that i am performing authentification using the loging and password and it should be access token?
I'm sending a list of parameters the SM8 API https://api.servicem8/platform_service_email
The response I am getting is 200 OK, & email is being sent to the client, but the email itself does not show up in job diary (kind of not linked to specific job_uuid).
Here's the list of parameters that I'm passing to the API:
{
"to": "[email protected]",
"from": "[email protected]",
"subject": "It works",
"message": "This message confirms Email was sent correctly",
"htmlBody": "This message confirms Email was sent correctly",
"textBody": "This message confirms Email was sent correctly",
"job_uuid": job_uuid,
}
job_uuid is used from previously created job, and it is varified that it is correct (as I used this job_uuid to refer other pieces of codes, and it worked properly) Anyone see what the problem is?
Cheer
"template_uuid": template_uuid,
Additionaly i tried to use the template to see if it will link the email to specific job , but it did not bring any luck.
is there a reason that i am performing authentification using the loging and password and it should be access token?
Share Improve this question edited Mar 13 at 14:28 VLAZ 29.1k9 gold badges63 silver badges84 bronze badges asked Mar 13 at 9:11 Vitaliy KulishVitaliy Kulish 11 Answer
Reset to default 0I figured out that the issue was regarding the wrong parameters to be used based on provided documentation by SM8.
The correct field for referring specific job number should look like "regardingJobUUID": "7c950fdd-7cbf-4b87-ad9b-2294227485db". It seams they have updated their documentation and added this field to the list of required parameter.