Skip to main content
This guide covers the complete end-to-end flow: registering the app, authorizing a user, and retrieving workspace contacts. By the end you will have a working access_token and a real API response in your terminal.

Prerequisites

  • A Vendaze account with at least one active workspace (create one free if you don’t have one)
  • curl available in your terminal

1. Register the app

Send a registration request with your app name, contact email, redirect URIs, and the scopes you need. This endpoint is public and requires no authentication.
Check your inbox. You will receive an email with a secure link to view your client_id and client_secret. Open the link within 15 minutes. The link expires and cannot be reopened. Copy both values to a safe place before continuing.

2. Build the authorization URL

Build the authorization URL and open it in your browser. Replace YOUR_CLIENT_ID with the value you received.
The state parameter should be a random string you generate. In production, store it in the session and verify it on the callback to prevent CSRF attacks.

3. Authorize and get the code

After opening the URL in your browser, you will:
  1. Log in with your Vendaze account
  2. Select a workspace to connect
  3. Review the requested scopes
  4. Click “Authorize”
After authorizing, the browser redirects to:
Copy the code value from the URL. It expires in 10 minutes and can only be used once.

4. Exchange the code for tokens

Send the code from your server. This request must never be made from the browser.
Response:

What just happened

Store both tokens securely on your server. Never expose them in client-side code or URLs.

5. Retrieve a contact

Use the access_token to make your first real API call. Fetch a specific person by their UUID:
Response:
The response includes the person’s data with embedded company, tags, lists, and custom_fields.

What to explore next

Custom Fields

Read and write workspace-defined custom fields on people, companies, and deals.

Errors

Understand error codes and build resilient error handling.

Webhooks

Receive real-time notifications when events occur in workspace data.

API Reference

Full endpoint reference with request and response schemas.