List emails

List emails

Get a list of all emails sent by Edge Impulse to a user. This function is only available through a JWT token, and is not available for all users.

GEThttps://studio.edgeimpulse.com/v1/api/users/{userId}/emails
Path parameters
userId*integer

User ID

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

emails*array of object

List of emails

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/users/{userId}/emails', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "emails": [
    {
      "from": "text",
      "to": "text",
      "created": "2024-07-23T18:47:51.252Z",
      "subject": "text",
      "bodyText": "text",
      "bodyHTML": "text",
      "sent": false,
      "providerResponse": "text"
    }
  ]
}

Last updated