> 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 a user

POST https://api.outpave.com/api/v1/users
Content-Type: application/json

Provisions a new user on your company. The email must be unique among
existing users. Requires **Admin** role.


Reference: https://developers.outpave.com/api-reference/company-api/users/post-api-v-1-users

## Authentication

- `Authorization` header (bearer token, required) — A short-lived access token from `POST /api/v1/access-token` (30 minutes by default). Send as `Authorization: Bearer <jwt>`.

## Request

### Body (application/json)

This endpoint expects an UserCreatePayload.

- `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. Must be unique among existing users.
- `phone` (string, required) — A valid US phone number.
- `address` (Address, required) — The user's residential address.
- `birthdate` (UserCreatePayloadBirthdate, required) — The user's date of birth, as an ISO 8601 date string or Unix timestamp in milliseconds. 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`, `Cardholder`
- `isOwner` (boolean, optional) — Whether the user is also a beneficial owner of the business.

## Response

### 200

User created.

- `id` (string, required) — The user's unique identifier.
- `firstName` (string, required) — The user's first name.
- `lastName` (string, required) — The user's last name.
- `email` (string, required) — The user's email address.
- `role` (enum, required) — The user's role on the company.
  - Allowed values: `Owner`, `Admin`, `Manager`, `Employee`, `Contractor`, `Cardholder`, `ReadOnly`
- `status` (enum, required) — The user's current status.
  - Allowed values: `ACTIVE`, `INACTIVE`, `PENDING`
- `phone` (string, optional, nullable) — The user's phone number.
- `title` (enum, optional, nullable) — The user's title at the company.
  - Allowed values: `CEO`, `COO`, `CFO`, `PRESIDENT`, `VICE_PRESIDENT`, `TREASURER`, `OWNER`, `AUTHORIZED_SIGNATORY`, `Other`
- `address` (Address, optional) — The user's residential address.

## Errors

### 400 Bad Request Error

The request was malformed or failed validation.

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

### 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 or the feature.

- `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 was well-formed but couldn't be processed (e.g. 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).

### 429 Too Many Requests Error

You've exceeded the rate limit for your API key. Check the `RateLimit-*` headers for your remaining quota.

- `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)

### UserCreatePayloadBirthdate

The user's date of birth, as an ISO 8601 date string or Unix timestamp in milliseconds. Must be 18 years or older.

- date
- long

## Examples

**Request**

```json
{
  "firstName": "Lam",
  "lastName": "API UserC",
  "email": "apiuserc@example.com",
  "phone": "214-555-1234",
  "address": {
    "city": "Poland",
    "country": "US",
    "address1": "232 Evergreen Drive",
    "zipcode": "44514",
    "state": "OH",
    "address2": null
  },
  "birthdate": 641840400000,
  "title": "OWNER",
  "role": "Admin"
}
```

**Response**

```json
{
  "id": "c6266de2-3981-4661-a8b9-0a2153fa2573",
  "firstName": "Lam",
  "lastName": "API UserA",
  "email": "apiusera@example.com",
  "role": "Admin",
  "status": "INACTIVE",
  "phone": "214-555-1234",
  "title": "OWNER",
  "address": {
    "city": "string",
    "country": "US",
    "address1": "string",
    "zipcode": "string",
    "state": "string",
    "address2": "string"
  }
}
```

**SDK Code**

```python default
import requests

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

payload = {
    "firstName": "Lam",
    "lastName": "API UserC",
    "email": "apiuserc@example.com",
    "phone": "214-555-1234",
    "address": {
        "city": "Poland",
        "country": "US",
        "address1": "232 Evergreen Drive",
        "zipcode": "44514",
        "state": "OH",
        "address2": None
    },
    "birthdate": 641840400000,
    "title": "OWNER",
    "role": "Admin"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript default
const url = 'https://api.outpave.com/api/v1/users';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"firstName":"Lam","lastName":"API UserC","email":"apiuserc@example.com","phone":"214-555-1234","address":{"city":"Poland","country":"US","address1":"232 Evergreen Drive","zipcode":"44514","state":"OH","address2":null},"birthdate":641840400000,"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 default
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"firstName\": \"Lam\",\n  \"lastName\": \"API UserC\",\n  \"email\": \"apiuserc@example.com\",\n  \"phone\": \"214-555-1234\",\n  \"address\": {\n    \"city\": \"Poland\",\n    \"country\": \"US\",\n    \"address1\": \"232 Evergreen Drive\",\n    \"zipcode\": \"44514\",\n    \"state\": \"OH\",\n    \"address2\": null\n  },\n  \"birthdate\": 641840400000,\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 default
require 'uri'
require 'net/http'

url = URI("https://api.outpave.com/api/v1/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\": \"Lam\",\n  \"lastName\": \"API UserC\",\n  \"email\": \"apiuserc@example.com\",\n  \"phone\": \"214-555-1234\",\n  \"address\": {\n    \"city\": \"Poland\",\n    \"country\": \"US\",\n    \"address1\": \"232 Evergreen Drive\",\n    \"zipcode\": \"44514\",\n    \"state\": \"OH\",\n    \"address2\": null\n  },\n  \"birthdate\": 641840400000,\n  \"title\": \"OWNER\",\n  \"role\": \"Admin\"\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.outpave.com/api/v1/users")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"firstName\": \"Lam\",\n  \"lastName\": \"API UserC\",\n  \"email\": \"apiuserc@example.com\",\n  \"phone\": \"214-555-1234\",\n  \"address\": {\n    \"city\": \"Poland\",\n    \"country\": \"US\",\n    \"address1\": \"232 Evergreen Drive\",\n    \"zipcode\": \"44514\",\n    \"state\": \"OH\",\n    \"address2\": null\n  },\n  \"birthdate\": 641840400000,\n  \"title\": \"OWNER\",\n  \"role\": \"Admin\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.outpave.com/api/v1/users', [
  'body' => '{
  "firstName": "Lam",
  "lastName": "API UserC",
  "email": "apiuserc@example.com",
  "phone": "214-555-1234",
  "address": {
    "city": "Poland",
    "country": "US",
    "address1": "232 Evergreen Drive",
    "zipcode": "44514",
    "state": "OH",
    "address2": null
  },
  "birthdate": 641840400000,
  "title": "OWNER",
  "role": "Admin"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp default
using RestSharp;

var client = new RestClient("https://api.outpave.com/api/v1/users");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"firstName\": \"Lam\",\n  \"lastName\": \"API UserC\",\n  \"email\": \"apiuserc@example.com\",\n  \"phone\": \"214-555-1234\",\n  \"address\": {\n    \"city\": \"Poland\",\n    \"country\": \"US\",\n    \"address1\": \"232 Evergreen Drive\",\n    \"zipcode\": \"44514\",\n    \"state\": \"OH\",\n    \"address2\": null\n  },\n  \"birthdate\": 641840400000,\n  \"title\": \"OWNER\",\n  \"role\": \"Admin\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift default
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "firstName": "Lam",
  "lastName": "API UserC",
  "email": "apiuserc@example.com",
  "phone": "214-555-1234",
  "address": [
    "city": "Poland",
    "country": "US",
    "address1": "232 Evergreen Drive",
    "zipcode": "44514",
    "state": "OH",
    "address2": 
  ],
  "birthdate": 641840400000,
  "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/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()
```