Skip to main content
This guide will help you make your first API call to GoSentrix.

Prerequisites

  • A GoSentrix account (sign up at app.gosentrix.io)
  • curl or your preferred HTTP client

Step 1: Sign Up

Create a new account:
curl -X POST https://api.gosentrix.io/api/v1/auth/signup \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "YourSecurePassword123!",
    "tenant_name": "My Company"
  }'
{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
  "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires_in": 900,
  "user": {
    "id": "user-123",
    "email": "[email protected]"
  },
  "tenant": {
    "id": "tenant-456",
    "name": "My Company"
  }
}

Step 2: Verify Email

Check your email and click the verification link, or use the API:
curl -X POST https://api.gosentrix.io/api/v1/auth/verify-email \
  -H "Content-Type: application/json" \
  -d '{
    "token": "VERIFICATION_TOKEN_FROM_EMAIL"
  }'

Step 3: Make Your First API Call

List your tenants:
curl -X GET https://cp.gosentrix.io/api/v1/tenants \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "results": [
    {
      "id": "tenant-456",
      "name": "My Company",
      "slug": "my-company",
      "status": "active",
      "created_at": "2024-01-01T00:00:00Z"
    }
  ],
  "count": 1
}

Next Steps