> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://developers.outpave.com/v1/llms.txt
> - v2: https://developers.outpave.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.outpave.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.outpave.com/_mcp/server.

# Create company user

POST https://api.outpave.com/api/v1/platform/companies/{companyId}/users
Content-Type: application/json

Provisions a new user on the given company. The email must be unique among active users; reactivate an inactive user by updating them instead. Requires **Admin** role.

Reference: https://developers.outpave.com/api-reference/platform-api/users/post-api-platform-companies-users

## Authentication

- `Authorization` header (bearer token, required) — A short-lived UUID access token from `GET /api/v1/platform/token`. Send as `Authorization: Bearer {token}`.

## Request

### Path parameters

- `companyId` (string, required) — The company's unique identifier.

### Body (application/json)

This endpoint expects an UserRequestPayload.

- `firstName` (string, required) — The user's first name. Letters and spaces only. Combined with `lastName` must not exceed 24 characters.
- `lastName` (string, required) — The user's last name. Letters and spaces only. Combined with `firstName` must not exceed 24 characters.
- `email` (string, required) — The user's email address.
- `phone` (string, required) — A valid US phone number for the user.
- `address` (Address, required) — The user's residential address.
- `birthdate` (date, required) — The user's date of birth (ISO 8601). Must be 18 years or older.
- `title` (enum, required) — The user's title at the company.
  - Allowed values: `CEO`, `COO`, `CFO`, `PRESIDENT`, `VICE_PRESIDENT`, `TREASURER`, `OWNER`, `Other`
- `role` (enum, required) — The user's role on the company.
  - Allowed values: `Owner`, `Admin`, `Manager`, `Employee`, `Contractor`
- `isOwner` (boolean, optional) — Whether the user is also a beneficial owner of the business.
- `ipAddress` (string, optional) — The end user's IP address, captured for terms acceptance. Defaults to your server's IP if omitted.
- `userAgent` (string, optional) — The end user's user agent string, captured for terms acceptance. Defaults to your server's user agent if omitted.

## Response

### 200

User created.

- `data` (PlatformUser, required) — A user on an onboarded company.

## Errors

### 401 Unauthorized Error

The credential is missing, invalid, expired, or doesn't have permission for this endpoint.

- `error` (string, required) — A short, human-readable error message.
- `details` (list of string, optional) — Additional error details (returned on validation failures).

### 403 Forbidden Error

The credential is valid but doesn't have permission to access this resource, or your plan does not include API access.

- `error` (string, required) — A short, human-readable error message.
- `details` (list of string, optional) — Additional error details (returned on validation failures).

### 404 Not Found Error

The requested resource doesn't exist or isn't accessible to your platform.

- `error` (string, required) — A short, human-readable error message.
- `details` (list of string, optional) — Additional error details (returned on validation failures).

### 422 Unprocessable Entity Error

The request failed validation, or a user with this email already exists.

- `error` (string, required) — A short, human-readable error message.
- `details` (list of string, optional) — Additional error details (returned on validation failures).

### 500 Internal Server Error

An unexpected server error occurred. Retry the request; if the problem persists, contact support.

- `error` (string, required) — A short, human-readable error message.
- `details` (list of string, optional) — Additional error details (returned on validation failures).

## Types

### Address

- `city` (string, required)
- `country` (string, required)
- `address1` (string, required)
- `zipcode` (string, required)
- `state` (string, required)
- `address2` (string, optional, nullable)

### PlatformUser

A user on an onboarded company.

- `id` (string, optional) — The user's unique identifier.
- `firstName` (string, optional) — The user's first name.
- `lastName` (string, optional) — The user's last name.
- `email` (string, optional) — The user's email address.
- `phone` (string, optional) — The user's phone number.
- `role` (string, optional) — The user's role on the company.
- `title` (string, optional) — The user's title at the company.
- `status` (enum, optional) — The user's current status.
  - Allowed values: `ACTIVE`, `INACTIVE`, `PENDING`
- `companyId` (string, optional) — The unique identifier of the company the user belongs to.

## Examples

**Request**

```json
{
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "phone": "+12025550123",
  "address": {
    "city": "string",
    "country": "US",
    "address1": "string",
    "zipcode": "string",
    "state": "string"
  },
  "birthdate": "1990-01-15",
  "title": "OWNER",
  "role": "Admin"
}
```

**Response**

```json
{
  "data": {
    "id": "string",
    "firstName": "string",
    "lastName": "string",
    "email": "string",
    "phone": "string",
    "role": "Admin",
    "title": "OWNER",
    "status": "ACTIVE",
    "companyId": "string"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.outpave.com/api/v1/platform/companies/companyId/users"

payload = {
    "firstName": "John",
    "lastName": "Doe",
    "email": "john.doe@example.com",
    "phone": "+12025550123",
    "address": {
        "city": "string",
        "country": "US",
        "address1": "string",
        "zipcode": "string",
        "state": "string"
    },
    "birthdate": "1990-01-15",
    "title": "OWNER",
    "role": "Admin"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.outpave.com/api/v1/platform/companies/companyId/users';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"firstName":"John","lastName":"Doe","email":"john.doe@example.com","phone":"+12025550123","address":{"city":"string","country":"US","address1":"string","zipcode":"string","state":"string"},"birthdate":"1990-01-15","title":"OWNER","role":"Admin"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.outpave.com/api/v1/platform/companies/companyId/users"

	payload := strings.NewReader("{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"email\": \"john.doe@example.com\",\n  \"phone\": \"+12025550123\",\n  \"address\": {\n    \"city\": \"string\",\n    \"country\": \"US\",\n    \"address1\": \"string\",\n    \"zipcode\": \"string\",\n    \"state\": \"string\"\n  },\n  \"birthdate\": \"1990-01-15\",\n  \"title\": \"OWNER\",\n  \"role\": \"Admin\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v1/platform/companies/companyId/users")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"email\": \"john.doe@example.com\",\n  \"phone\": \"+12025550123\",\n  \"address\": {\n    \"city\": \"string\",\n    \"country\": \"US\",\n    \"address1\": \"string\",\n    \"zipcode\": \"string\",\n    \"state\": \"string\"\n  },\n  \"birthdate\": \"1990-01-15\",\n  \"title\": \"OWNER\",\n  \"role\": \"Admin\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.outpave.com/api/v1/platform/companies/companyId/users")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"email\": \"john.doe@example.com\",\n  \"phone\": \"+12025550123\",\n  \"address\": {\n    \"city\": \"string\",\n    \"country\": \"US\",\n    \"address1\": \"string\",\n    \"zipcode\": \"string\",\n    \"state\": \"string\"\n  },\n  \"birthdate\": \"1990-01-15\",\n  \"title\": \"OWNER\",\n  \"role\": \"Admin\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.outpave.com/api/v1/platform/companies/companyId/users', [
  'body' => '{
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "phone": "+12025550123",
  "address": {
    "city": "string",
    "country": "US",
    "address1": "string",
    "zipcode": "string",
    "state": "string"
  },
  "birthdate": "1990-01-15",
  "title": "OWNER",
  "role": "Admin"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v1/platform/companies/companyId/users");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\",\n  \"email\": \"john.doe@example.com\",\n  \"phone\": \"+12025550123\",\n  \"address\": {\n    \"city\": \"string\",\n    \"country\": \"US\",\n    \"address1\": \"string\",\n    \"zipcode\": \"string\",\n    \"state\": \"string\"\n  },\n  \"birthdate\": \"1990-01-15\",\n  \"title\": \"OWNER\",\n  \"role\": \"Admin\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@example.com",
  "phone": "+12025550123",
  "address": [
    "city": "string",
    "country": "US",
    "address1": "string",
    "zipcode": "string",
    "state": "string"
  ],
  "birthdate": "1990-01-15",
  "title": "OWNER",
  "role": "Admin"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.outpave.com/api/v1/platform/companies/companyId/users")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```