cURL
curl --request POST \ --url https://dev.exante.app/api/company \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "organization_name": "<string>", "organization_uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "additional_user_ids": [ 123 ] } '
{ "status": "success", "status_code": 200, "message": "Success", "data": { "uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "owner_id": 123, "created_on": "2023-11-07T05:31:56Z", "max_documents": 123, "members": [ { "id": 123, "uid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "email": "<string>", "username": "<string>", "fullname": "<string>", "avatar": "<string>" } ] } }
Creates a company owned by the authenticated user and creates a default organization inside it.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Company name
Name for the default organization created alongside the company
Optional UID for the default organization
Additional internal user IDs to add to the default organization
Company created
"success"
200
"Success"
Created company. This response omits the members array in the current implementation.
Show child attributes