Accessibility Tools

  • Content scaling 100%
  • Font size 100%
  • Line height 100%
  • Letter spacing 100%
  • Manifeste
  • Simplifier l'entreprise
  • Outils
  • Mieux travailler
  • Contact
Menu
  • Manifeste
  • Simplifier l'entreprise
  • Outils
  • Mieux travailler
  • Contact

Oui Humans

Non défini

4 minute de lecture
Multi-tenant contact management CRM with Google Contacts integration, group management, SMS messaging, and Hub synchronization.

Sur cette page

  • Overview
  • Authentication
  • Humans (Contacts)
  • GET /api/humans
  • Parameters
  • Response
  • POST /api/humans
  • Request Body
  • GET /api/humans/{id}
  • PUT /api/humans/{id}
  • DELETE /api/humans/{id}
  • GET /api/humans/search
  • POST /api/humans/{id}/favorite
  • GET /api/humans/stats
  • Companies
  • POST /api/humans/companies
  • Groups
  • GET /api/humans/groups
  • POST /api/humans/groups
  • GET /api/humans/groups/{id}
  • POST /api/humans/groups/{id}/members
  • DELETE /api/humans/groups/{id}/members
  • Export
  • GET /api/export
  • Parameters
  • GET /api/export/unified
  • Google Contacts Integration
  • GET /api/google/auth-url
  • POST /api/google/callback
  • GET /api/google/accounts
  • POST /api/google/import
  • DELETE /api/google/accounts/{id}
  • Hub Synchronization
  • GET /api/hub/config
  • POST /api/hub/config
  • POST /api/hub/import
  • POST /api/hub/export
  • POST /api/hub/sync
  • GET /api/hub/history
  • SMS Messaging
  • POST /api/sms/send
  • POST /api/sms/send-bulk
  • GET /api/sms
  • GET /api/sms/stats
  • Admin Endpoints
  • Error Handling

Autres documents

  • Oui Compose
  • Oui Device
  • Oui Incoming
  • Oui Monitor
  • Oui Outgoing
  • Work
  • Oui Engage
  • Oui Chat
  • Oui Answer
  • Oui Create
  • Gestion des cookies
Multi-tenant contact management CRM with Google Contacts integration, group management, SMS messaging, and Hub synchronization.

Multi-tenant contact management CRM with Google Contacts integration, group management, SMS messaging, and Hub synchronization.

Base URL: https://humans-api.yourdomain.com/api

Overview

Authentication

curl -H "X-API-Key: your-api-key" https://api.example.com/api/humans

Humans (Contacts)

GET /api/humans

Parameters

ParameterTypeDefaultDescription
pageint1Page number
per_pageint20Items per page (max 100)
sortstringcreated_atSort: created_at, updated_at, first_name, last_name, display_name
orderstringDESCASC or DESC
q / searchstring-Search in names
company_idint-Filter by company
sourcestring-Filter: manual, google, hub
is_favoritebool-Filter favorites
group_idint-Filter by group

Response

{
  "success": true,
  "data": [{
    "id": 1,
    "first_name": "John",
    "last_name": "Doe",
    "display_name": "John Doe",
    "job_title": "Manager",
    "company_name": "Acme Corp",
    "is_favorite": true,
    "phone_numbers": [{"phone_type": "mobile", "phone_number": "+33612345678", "is_primary": true}],
    "emails": [{"email_type": "work", "email": "Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.", "is_primary": true}],
    "groups": [{"id": 1, "name": "VIP", "color": "#FF5733"}]
  }],
  "pagination": {"page": 1, "per_page": 20, "total": 100, "total_pages": 5}
}

POST /api/humans

Request Body

{
  "first_name": "Jane",
  "last_name": "Smith",
  "display_name": "Jane Smith",
  "nickname": "JS",
  "job_title": "Developer",
  "department": "Engineering",
  "company_id": 2,
  "birthday": "1995-05-20",
  "notes": "Important contact",
  "photo_url": "https://example.com/photo.jpg",
  "source": "manual",
  "is_favorite": false,
  "metadata": {"custom_field": "value"},
  "phone_numbers": [{"number": "+33612345678", "type": "mobile", "is_primary": true}],
  "emails": [{"address": "Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.", "type": "work", "is_primary": true}],
  "group_ids": [1, 2]
}

GET /api/humans/{id}

Returns full human object with all phone numbers, emails, and groups.

PUT /api/humans/{id}

Same fields as create, all optional.

DELETE /api/humans/{id}

Soft deletes the human contact.

GET /api/humans/search

Query: q (min 2 chars), limit (default 50, max 100)

POST /api/humans/{id}/favorite

Toggles favorite status. Returns new is_favorite value.

GET /api/humans/stats

Companies

POST /api/humans/companies

Groups

GET /api/humans/groups

Returns groups with member_count.

POST /api/humans/groups

GET /api/humans/groups/{id}

Returns group details with full member list.

POST /api/humans/groups/{id}/members

Returns: added, requested, valid counts.

DELETE /api/humans/groups/{id}/members

Export

GET /api/export

CSV includes: id, names, job_title, company, birthday, primary_phone, primary_email, etc.

Parameters

ParameterTypeDescription
formatstringjson, csv, or vcard (default: json)
idsstringComma-separated human IDs
group_idintExport group members
company_idintExport by company

GET /api/export/unified

Returns complete export with all entities and stats.

Google Contacts Integration

GET /api/google/auth-url

Query: state (optional OAuth state parameter)

POST /api/google/callback

Exchanges code for tokens and stores credentials.

GET /api/google/accounts

Returns connected Google accounts with sync status.

POST /api/google/import

Returns stats: created, updated, skipped.

DELETE /api/google/accounts/{id}

Revokes Google account connection.

Hub Synchronization

GET /api/hub/config

Returns Hub sync configuration (URL, direction, intervals, etc.).

POST /api/hub/config

POST /api/hub/import

Imports contacts from external Hub. Returns stats.

POST /api/hub/export

POST /api/hub/sync

Runs full bidirectional sync. Returns import and export results.

GET /api/hub/history

Query: limit (default 20, max 100). Returns sync job history.

SMS Messaging

POST /api/sms/send

Supports variable substitution from linked human.

POST /api/sms/send-bulk

GET /api/sms

Query: status, human_id, direction, q, pagination params.

GET /api/sms/stats

Query: period (7d, 30d, 90d, all). Returns totals and by_status breakdown.

Admin Endpoints

Requires admin role.

Error Handling

CodeMeaning
200Success
201Created
400Bad Request
401Unauthorized
403Forbidden / Tenant Not Found
404Not Found
422Validation Error
429Rate Limited
500Server Error
{"success": true, "data": {...}, "message": "Operation successful"}

Et vous ?

Mieux travailler Discutons de vos besoins
  • Mentions légales
  • Confidentialité des données
  • Cgv

Oui © 2026

Merci de soutenir le projet


Ce projet ne peut pas exister sans votre soutien
Télécharger Soutenir