[Python] ServiceM8 API Email Sent but Not Appearing in Job Diary

Discussão em 'Python' iniciado por Stack, Março 13, 2025.

  1. Stack

    Stack Membro Participativo

    I'm sending a list of parameters the SM8 API https://api.servicem8.com/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": "client@email.com",
    "from": "myemail@email.com",
    "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?

    Continue reading...

Compartilhe esta Página