> For the complete documentation index, see [llms.txt](https://apidocs.zerionsoftware.com/doc/iformbuilder-v81/llms.txt)

# Create an API Client

> POST /profiles/{profile_id}/api_clients
> 
> Creates a client acting as `user_id`, a user of the profile. `type` is a non-empty list of `jwt-bearer`, `authorization_code`, `password`. `redirect_uris` is required when `type` includes `authorization_code`; each entry must be an absolute http(s) URL without fragment or whitespace, and the list joined by commas must fit 200 characters.
> 
> The response carries `client_secret` once. Store it: no later request returns it, and `reset_secret` replaces it.



## Servers
- https://api.iformbuilder.com/exzact/api/v81/[servername]: https://api.iformbuilder.com/exzact/api/v81/[servername]


## Authentication methods
- Oauth2


## Parameters

### Path parameters

- **profile_id** (string)
  id of the profile



### Body: application/json (object)

- **name** (string)

- **user_id** (integer)
  id of the user the client acts as; must belong to `profile_id`

- **type** (array[string])

- **redirect_uris** (array[string(uri)])



## Responses
### 201
Created - the secret is in this response only.

#### Body: application/json (object)
- **id** (integer)

- **client_key** (string)

- **client_secret** (string)


### 400
Bad Request - `name` is missing, over 100 characters or a reserved name (`TASKWORKER`, `PUBLICLINKAPI`, `FLATTENTASKAPI`), `type` is empty or names an unknown grant, `redirect_uris` holds a value that is not an absolute http(s) URL without fragment or whitespace or the list joined by commas exceeds 200 characters, `redirect_uris` is empty while `type` includes `authorization_code`, or `user_id` is not a user of the profile (for a COMPANY caller, also when that user is a server admin or a group).

### 401
Unauthorized - missing or invalid bearer token.

### 403
Forbidden - the token belongs to a BASIC user, or `profile_id` is not the caller's own profile.

### 404
Not Found - `profile_id` is not a valid profile id.


[Powered by Bump.sh](https://bump.sh)
