Create Customer
POST/customers/
Creates a new customer in the system.
A customer may be created with as little as a name
.
extra
key-value pairs and additional tags
may be attached to a customer.
Request
Responses
- 201
- 422
Customer successfully created. Returns the new customer object.
Validation error in request parameters
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://www.parlant.io/customers/");
request.Headers.Add("Accept", "application/json");
var content = new StringContent(string.Empty);
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());