# "Clients" Endpoints - POST Create client

**URL:** <https://community.toggl.com/t/clients-endpoints-post-create-client/359>\
**Category:** API References\
**Tags:** clients, api, endpoints, post, create\
**Created:** [December 2, 2024, 3:49pm UTC](https://community.toggl.com/t/clients-endpoints-post-create-client/359 "2024-12-02T15:49:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Support](https://yyz2.discourse-cdn.com/flex012/user_avatar/community.toggl.com/support/32/1577_2.png) [@Support](https://community.toggl.com/u/Support)\
**Post date:** [December 2, 2024, 3:49pm UTC](https://community.toggl.com/t/clients-endpoints-post-create-client/359/1 "2024-12-02T15:49:41Z")

</div>

```auto
https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/clients

```

Create workspace client.

- cURL
- Go
- Ruby
- JavaScript
- Python
- Rust

```auto
extern crate tokio;extern crate serde_json;use reqwest::{Client};use reqwest::header::{CONTENT_TYPE};#[tokio::main]async fn main() -> Result<(), reqwest::Error> { let client = Client::new().basic_auth("<email>", "<password>"); let json = client.request(Method::POST, "https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/clients".to_string()).json(&serde_json::json!(\{"name":"string","notes":"string","wid":"integer"\})) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}

```

### Parameters[​](https://engineering.toggl.com/docs/api/clients/#parameters-1)

#### Path[​](https://engineering.toggl.com/docs/api/clients/#path-1)

| name | type | required | description |
| --- | --- | --- | --- |
| workspace\_id | integer | true | Numeric ID of the workspace |

#### Body[​](https://engineering.toggl.com/docs/api/clients/#body)

| Name | Type | Description |
| --- | --- | --- |
| name | string | Client name |
| notes | string | - |
| wid | integer | Workspace ID |

### Response[​](https://engineering.toggl.com/docs/api/clients/#response-1)

#### 200[​](https://engineering.toggl.com/docs/api/clients/#200-1)

| Name | Type | Description |
| --- | --- | --- |
| archived | boolean | IsArchived is true if the client is archived |
| at | string | When was the last update |
| creator\_id | integer | CreatorID is the ID of the user who created the client |
| id | integer | Client ID |
| integration\_ext\_id | string | The external ID of the linked entity in the external system (e.g. JIRA/SalesForce) |
| integration\_ext\_type | string | The external type of the linked entity in the external system (e.g. JIRA/SalesForce) |
| integration\_provider | string | The provider (e.g. JIRA/SalesForce) that has an entity linked to this Toggl Track entity |
| name | string | Name of the client |
| notes | string | - |
| permissions | string | List of authorization permissions for this client. |
| wid | integer | Workspace ID |

#### 400[​](https://engineering.toggl.com/docs/api/clients/#400-1)

Possible error messages:

- Client name maximum length is {max\_client\_length}
- Client name cannot be empty

#### 403[​](https://engineering.toggl.com/docs/api/clients/#403-1)

Forbidden

#### 500[​](https://engineering.toggl.com/docs/api/clients/#500-1)

Internal Server Error
