Skip to main content

Get User Information

Returns information about the authenticated user.

Endpoint

GET /api/zapier/me

Headers

Authorization: Bearer your-access-token

Response

{
"id": "550e8400-e29b-41d4-a716-446655440000",
"email": "john@example.com",
"business_name": "John's Auto Shop"
}

Response Fields

  • id: Unique identifier for the user
  • email: User's email address
  • business_name: Name of the user's business

Example Usage

cURL

curl -X GET https://app.justanudge.co/api/zapier/me \
-H "Authorization: Bearer your-access-token"

JavaScript

const response = await fetch('https://app.justanudge.co/api/zapier/me', {
headers: {
'Authorization': 'Bearer your-access-token'
}
});

const user = await response.json();
console.log(user);

Error Responses

401 Unauthorized

{
"error": "unauthorized",
"error_description": "Invalid or expired access token"
}

This error occurs when:

  • The access token is invalid
  • The access token has expired
  • No authorization header is provided