Skip to main content

API Endpoints

The Nudge API provides endpoints for managing contacts and review requests.

Core Action

Add Contact (Triggers Automatic Review Request)

  • POST /api/zapier/send-review-request - Add a contact and Nudge automatically sends the review request

Adding a contact triggers an automatic review request.

Supporting Endpoints

User Information

  • GET /api/zapier/me - Get authenticated user information

Connection Management

  • GET /api/zapier/status - Check if your integration is working
  • GET /api/zapier/send-review-request/fields - Get field definitions for Zapier UI

OAuth Authentication

  • GET /api/oauth/zapier/authorize - Start OAuth flow
  • POST /api/oauth/zapier/token - Exchange tokens
  • POST /api/oauth/zapier/revoke - Disconnect integration

Common Headers

All authenticated endpoints require:

Authorization: Bearer your-access-token
Content-Type: application/json

Error Handling

All API errors follow a consistent format:

{
"error": "error_code",
"error_description": "Human-readable error message"
}

Common Error Codes

HTTP StatusError CodeDescription
400invalid_requestMissing or invalid parameters
401unauthorizedInvalid or expired access token
401invalid_clientInvalid OAuth client credentials
400invalid_grantInvalid authorization code or refresh token
404not_foundResource not found
500server_errorInternal server error