Skip to main content
GET
/
api
/
v1
/
webhooks
curl -X GET https://api.jasni.ai/api/v1/webhooks \
  -H "Authorization: Bearer jsk_your_api_key"
{
  "success": true,
  "data": {
    "webhooks": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "url": "https://your-server.com/webhooks/jasni",
        "events": ["email.received", "email.sent"],
        "active": true,
        "description": "Production webhook",
        "created_at": "2024-01-15T10:30:00Z",
        "updated_at": "2024-01-15T10:30:00Z"
      },
      {
        "id": "550e8400-e29b-41d4-a716-446655440001",
        "url": "https://staging.your-server.com/webhooks",
        "events": ["email.received"],
        "active": false,
        "description": "Staging webhook",
        "created_at": "2024-01-10T08:00:00Z",
        "updated_at": "2024-01-12T14:20:00Z"
      }
    ]
  }
}

Response

success
boolean
Indicates if the request was successful
data
object
curl -X GET https://api.jasni.ai/api/v1/webhooks \
  -H "Authorization: Bearer jsk_your_api_key"
{
  "success": true,
  "data": {
    "webhooks": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "url": "https://your-server.com/webhooks/jasni",
        "events": ["email.received", "email.sent"],
        "active": true,
        "description": "Production webhook",
        "created_at": "2024-01-15T10:30:00Z",
        "updated_at": "2024-01-15T10:30:00Z"
      },
      {
        "id": "550e8400-e29b-41d4-a716-446655440001",
        "url": "https://staging.your-server.com/webhooks",
        "events": ["email.received"],
        "active": false,
        "description": "Staging webhook",
        "created_at": "2024-01-10T08:00:00Z",
        "updated_at": "2024-01-12T14:20:00Z"
      }
    ]
  }
}

Notes

  • Webhooks are returned in reverse chronological order (newest first)
  • The secret field is never returned when listing webhooks (only on creation)
  • Maximum of 10 webhooks per user

Available Events

EventDescription
email.receivedA new email was received
email.sentAn email was sent successfully
email.deliveredAn email was delivered to the recipient’s server
email.bouncedAn email bounced
email.spamA recipient marked the email as spam
email.rejectedAn email was rejected before delivery
email.deletedAn email was deleted
domain.verifiedA custom domain was verified