Skip to main content
GET
/
api
/
v2.1
/
customer
/
organization
/
{organizationId}
/
directors
List directors
curl --request GET \
  --url https://sandbox.finhub.cloud/api/v2.1/customer/organization/{organizationId}/directors \
  --header 'Authorization: <authorization>' \
  --header 'User-Agent: <user-agent>' \
  --header 'X-Forwarded-For: <x-forwarded-for>' \
  --header 'X-Forwarded-From: <x-forwarded-from>' \
  --header 'X-Tenant-ID: <x-tenant-id>' \
  --header 'deviceId: <deviceid>' \
  --header 'platform: <platform>'
{
  "success": true,
  "data": {
    "directors": [
      {
        "directorId": "dir_12345",
        "firstName": "John",
        "lastName": "Director",
        "email": "john.director@acme.com",
        "role": "CEO",
        "appointedDate": "2020-01-15",
        "status": "ACTIVE"
      }
    ]
  }
}

Organization Directors API

APIs for managing directors of business organizations.
Base URL: https://sandbox.finhub.cloud

Available Operations

List Directors

GET /directors

Add Director

POST /directors

Remove Director

DELETE /directors/{id}

List Directors

Retrieves all directors for an organization.
For complete details on authentication and headers, refer to the Standard HTTP Headers reference documentation.

Request

organizationId
string
required
Organization identifier
Authorization
string
required
Bearer token for authentication
X-Tenant-ID
string
required
Tenant identifier

Code Examples

curl -X GET "https://sandbox.finhub.cloud/api/v2.1/customer/organization/org_12345/directors" \
  -H "Accept: application/json, text/plain, */*" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "X-Tenant-ID: 97e7ff29-15f3-49ef-9681-3bbfcce4f6cd" \
  -H "X-Forwarded-From: e2e-test" \
  -H "platform: web" \
  -H "deviceId: 356938035643809"
{
  "success": true,
  "data": {
    "directors": [
      {
        "directorId": "dir_12345",
        "firstName": "John",
        "lastName": "Director",
        "email": "john.director@acme.com",
        "role": "CEO",
        "appointedDate": "2020-01-15",
        "status": "ACTIVE"
      }
    ]
  }
}

Add Director

Adds a new director to the organization (requires ADMIN role).

Request

organizationId
string
required
Organization identifier
firstName
string
required
Director’s first name
lastName
string
required
Director’s last name
email
string
required
Director’s email address
dateOfBirth
string
required
Date of birth (YYYY-MM-DD)
nationality
string
required
Two-letter country code
role
string
required
Director role (CEO, CFO, CTO, etc.)
appointedDate
string
required
Appointment date (YYYY-MM-DD)
address
object
Director’s address

Code Examples

curl -X POST "https://sandbox.finhub.cloud/api/v2.1/customer/organization/org_12345/directors" \
  -H "Accept: application/json, text/plain, */*" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "X-Tenant-ID: 97e7ff29-15f3-49ef-9681-3bbfcce4f6cd" \
  -H "X-Forwarded-From: e2e-test" \
  -H "platform: web" \
  -H "deviceId: 356938035643809" \
  -d '{
    "firstName": "Jane",
    "lastName": "Executive",
    "email": "jane.executive@acme.com",
    "dateOfBirth": "1975-06-20",
    "nationality": "DE",
    "role": "CFO",
    "appointedDate": "2024-01-15",
    "address": {
      "street": "456 Director Lane",
      "city": "Munich",
      "postalCode": "80331",
      "country": "DE"
    }
  }'
{
  "success": true,
  "data": {
    "directorId": "dir_67890",
    "status": "ACTIVE",
    "createdAt": "2024-01-15T10:30:00Z"
  }
}

Remove Director

Removes a director from the organization (requires ADMIN role).

Code Examples

curl -X DELETE "https://sandbox.finhub.cloud/api/v2.1/customer/organization/org_12345/directors/dir_67890" \
  -H "Accept: application/json, text/plain, */*" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "X-Tenant-ID: 97e7ff29-15f3-49ef-9681-3bbfcce4f6cd" \
  -H "X-Forwarded-From: e2e-test" \
  -H "platform: web" \
  -H "deviceId: 356938035643809"
{
  "success": true,
  "data": {
    "directorId": "dir_67890",
    "status": "REMOVED"
  }
}

Response Codes

CodeDescription
200Directors retrieved successfully
201Director added successfully
204Director removed successfully
400Invalid request data
403Insufficient permissions
404Organization or director not found
500Internal server error

API Schema Reference

For the complete OpenAPI schema specification, see the API Schema Mapping document.

Headers

X-Organization-ID
string

Organization identifier header (must match path)

User-Agent
string
required

Browser user agent

Example:

"Mozilla/5.0"

X-Forwarded-For
string
required

Client/application Ip address

Example:

"192.168.0.1"

X-Forwarded-From
string
required

Client/application identifier for request source tracking

Example:

"playground"

X-Tenant-ID
string
required

Tenant identifier

Example:

"97e7ff29-15f3-49ef-9681-3bbfcce4f6cd"

platform
string
required

Client platform identifier. Also accepted as sec-ch-ua-platform

Example:

"web"

deviceId
string
required

Device identifier

Example:

"e2e-test-device"

Authorization
string
required

Bearer token from admin or customer session creation

Example:

"Bearer <token>"

Path Parameters

organizationId
string
required

Organization identifier (UUID)

Response

200

OK