POST
/
vendors
curl --request POST \
  --url https://api.charp.ai/vendors \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "email": "jsmith@example.com",
  "plan": "Free",
  "credits": 123
}'
{
  "vendor_id": "<string>",
  "name": "<string>",
  "email": "jsmith@example.com",
  "plan": "Free",
  "credits": 123,
  "status": "active",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer token authentication using OAuth2 access token

Body

application/json

Vendor details to create

The body is of type object.

Response

200
application/json

Vendor created successfully

The response is of type object.