curl --request POST \
--url https://api-sandbox.stablesea.com/v1/organizations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "Acme Corporation",
"contact": {
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe"
}
}
'{
"data": {
"id": "org_01k2cm4r59e5z8k5ggrbbxjcwy",
"name": "Acme Corporation",
"contact": {
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe"
},
"status": {
"current_status": "ACTIVE",
"status_history": [
{
"status": "ACTIVE",
"created_at": "2024-01-15T10:00:00Z"
}
]
},
"created_at": "2024-01-15T10:00:00Z",
"updated_at": "2024-01-15T10:00:00Z"
}
}Creates a new organization
curl --request POST \
--url https://api-sandbox.stablesea.com/v1/organizations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"name": "Acme Corporation",
"contact": {
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe"
}
}
'{
"data": {
"id": "org_01k2cm4r59e5z8k5ggrbbxjcwy",
"name": "Acme Corporation",
"contact": {
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe"
},
"status": {
"current_status": "ACTIVE",
"status_history": [
{
"status": "ACTIVE",
"created_at": "2024-01-15T10:00:00Z"
}
]
},
"created_at": "2024-01-15T10:00:00Z",
"updated_at": "2024-01-15T10:00:00Z"
}
}Use your API key as the bearer token
Unique key to prevent duplicate operations
"550e8400-e29b-41d4-a716-446655440000"
Organization to create
Organization created successfully
Show child attributes
"org_01k2cm4r59e5z8k5ggrbbxjcwy"
"Acme Corporation"
Show child attributes
"John"
"Doe"
Show child attributes
ACTIVE, COMPLIANCE_HOLD "ACTIVE"
{
"current_status": "ACTIVE",
"status_history": [
{
"status": "ACTIVE",
"created_at": "2024-01-15T10:00:00Z"
}
]
}ISO 8601 UTC timestamp (RFC3339)
"2024-01-15T10:00:00Z"
ISO 8601 UTC timestamp (RFC3339)
"2024-01-15T10:00:00Z"