cURL
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
Use your API key as the bearer token
Unique key to prevent duplicate operations
"550e8400-e29b-41d4-a716-446655440000"
Organization to create
"Acme Corporation"
Show child attributes
Organization created successfully