Hookbase
Docs
GuideAPI ReferenceIntegrationsUse CasesCLIMCP
Getting StartedSDK ReferencePortal ComponentsAPI Reference
Get Started

API Reference

OverviewAPI ExplorerAuthenticationAPI Keys

Core Endpoints

SourcesDestinationsRoutesEventsDeliveriesDelivery ClustersTransformsFiltersSchemasWebhook IngestAnalytics

Development Tools

TunnelsCron JobsCron GroupsScheduled Sends

Administration

Custom DomainsAudit LogsNotification ChannelsAlert RulesRedaction PoliciesObservability Export
DocsReceiveAPIUser

User Profile API

Manage the current authenticated user's profile, preferences, and data.

Endpoints

MethodPathDescription
GET/api/meGet current user
PATCH/api/meUpdate current user
POST/api/me/export-dataRequest GDPR data export
GET/api/me/export-dataGet data export status/download
POST/api/me/onboardingUpdate onboarding status
GET/api/me/onboardingGet onboarding status

Get Current User

GET /api/me

Example

curl https://api.hookbase.app/api/me \
  -H "Authorization: Bearer whr_your_api_key"

Response

{
  "user": {
    "id": "usr_abc123",
    "email": "[email protected]",
    "displayName": "John Doe",
    "avatarUrl": null,
    "twoFactorEnabled": false,
    "emailVerified": true,
    "createdAt": "2024-01-01T00:00:00Z"
  },
  "organizations": [
    {
      "id": "org_abc123",
      "name": "My Company",
      "slug": "my-company",
      "plan": "pro",
      "role": "owner",
      "member_count": 5,
      "source_count": 10,
      "destination_count": 8,
      "route_count": 15
    }
  ]
}

Update Current User

PATCH /api/me

Request Body

FieldTypeDescription
displayNamestringDisplay name
avatarUrlstringAvatar URL

Example

curl -X PATCH https://api.hookbase.app/api/me \
  -H "Authorization: Bearer whr_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "displayName": "John D."
  }'

Response

Returns the updated user object.

GDPR Data Export

Request Export

POST /api/me/export-data

Initiates an export of all user data. The export is prepared asynchronously and available for download when ready.

Example

curl -X POST https://api.hookbase.app/api/me/export-data \
  -H "Authorization: Bearer whr_your_api_key"

Response

{
  "exportId": "exp_abc123",
  "status": "processing",
  "requestedAt": "2024-01-15T10:30:00Z",
  "message": "Data export initiated. Check status with GET /api/me/export-data"
}

Check Export Status

GET /api/me/export-data
{
  "exportId": "exp_abc123",
  "status": "ready",
  "requestedAt": "2024-01-15T10:30:00Z",
  "completedAt": "2024-01-15T10:35:00Z",
  "downloadUrl": "https://api.hookbase.app/api/me/export-data/exp_abc123/download",
  "expiresAt": "2024-01-22T10:35:00Z"
}

Export Statuses

StatusDescription
processingExport is being prepared
readyExport is ready for download
expiredDownload link has expired (request a new export)

Onboarding

Get Onboarding Status

GET /api/me/onboarding

Response

{
  "completed": false,
  "steps": {
    "createOrganization": true,
    "createSource": true,
    "createDestination": false,
    "createRoute": false,
    "receiveFirstEvent": false
  }
}

Update Onboarding

POST /api/me/onboarding
FieldTypeDescription
stepstringOnboarding step to mark complete
skipbooleanSkip the entire onboarding flow

Related

  • Authentication — Login, register, 2FA
NextOverview

On this page

EndpointsGet Current UserExampleResponseUpdate Current UserRequest BodyExampleResponseGDPR Data ExportRequest ExportExampleResponseCheck Export StatusExport StatusesOnboardingGet Onboarding StatusResponseUpdate OnboardingRelated