---
title: Create new Vet for a Clinic
slug: import-test-pdf/create-new-vet-for-a-clinic
createdAt: 2025-10-28T16:28:34.278Z
---

{
  "id": "6630Ie6iMBmSUeQU7ys3t",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "/api/v1/vets",
    "servers": [],
    "name": "Create new Vet for a Clinic",
    "description": "Create new Vet for a Clinic",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "",
          "schema": [
            {
              "name": "first_name",
              "kind": "required",
              "type": "string",
              "description": "",
              "example": "John"
            },
            {
              "name": "last_name",
              "kind": "required",
              "type": "string",
              "description": "",
              "example": "Doe"
            },
            {
              "name": "email",
              "kind": "required",
              "type": "string",
              "description": "",
              "example": "john@example.com"
            },
            {
              "name": "phone",
              "kind": "optional",
              "type": "string",
              "description": "E164 format",
              "example": "+16175551212"
            },
            {
              "name": "clinic_id",
              "kind": "required",
              "type": "integer",
              "description": "",
              "example": 1
            },
            {
              "name": "role_id",
              "kind": "required",
              "type": "integer",
              "description": "",
              "example": 1
            },
            {
              "name": "services",
              "kind": "required",
              "type": "array",
              "description": "Services",
              "example": "",
              "itemType": "integer",
              "customType": "integer[]",
              "itemExample": "",
              "itemDefault": ""
            },
            {
              "name": "password",
              "kind": "required",
              "type": "string",
              "description": "",
              "example": "123456"
            },
            {
              "name": "title",
              "kind": "optional",
              "type": "string",
              "description": "title",
              "example": "Dr."
            },
            {
              "name": "license_number",
              "kind": "optional",
              "type": "string",
              "description": "license number",
              "example": "123456"
            },
            {
              "name": "language_id",
              "kind": "optional",
              "type": "integer",
              "description": "",
              "example": 1
            },
            {
              "name": "video_link",
              "kind": "optional",
              "type": "string",
              "description": "Vets video link url for appointments",
              "example": "https://example.com"
            },
            {
              "name": "has_user_chat",
              "kind": "optional",
              "type": "boolean",
              "description": "If the vet has a separate chat user. Default false",
              "example": true
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "201",
        "description": "successful operation",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "data",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/Vet",
                "customType": "Vet",
                "schema": [
                  {
                    "name": "id",
                    "kind": "optional",
                    "type": "integer",
                    "description": "",
                    "example": 1
                  },
                  {
                    "name": "first_name",
                    "kind": "optional",
                    "type": "integer",
                    "description": "",
                    "example": "John"
                  },
                  {
                    "name": "last_name",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Doe"
                  },
                  {
                    "name": "full_name",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "John Doe"
                  },
                  {
                    "name": "name_with_title",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Dr. John Doe"
                  },
                  {
                    "name": "email",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "vet@example.com"
                  },
                  {
                    "name": "phone",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "123456789"
                  },
                  {
                    "name": "avatar",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "https://vet.digitail.io/images/profilepic.jpg"
                  },
                  {
                    "name": "stamp",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "https://vet.digitail.io/images/signature.jpg"
                  },
                  {
                    "name": "license_number",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "123456789"
                  },
                  {
                    "name": "job_title",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "Dr."
                  },
                  {
                    "name": "deleted_at",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "description": "",
                    "example": ""
                  },
                  {
                    "name": "active",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "",
                    "example": true
                  },
                  {
                    "name": "video_link",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "https://digitail.com/video"
                  },
                  {
                    "name": "public_appointment_link",
                    "kind": "optional",
                    "type": "string",
                    "description": "",
                    "example": "https://digitail.com/clinics/clinic-slug/vet-slug"
                  },
                  {
                    "name": "type",
                    "kind": "optional",
                    "type": "string<veterinarian | technician | groomer>",
                    "description": "",
                    "example": ""
                  },
                  {
                    "name": "two_factor_enabled",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "",
                    "example": true
                  },
                  {
                    "name": "has_chat_user",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "true if chatUser is active, false if non-existent or inactive",
                    "example": true
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url /api/v1/vets \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data-raw '{\n     \"first_name\": \"John\",\n     \"last_name\": \"Doe\",\n     \"email\": \"john@example.com\",\n     \"clinic_id\": 1,\n     \"role_id\": 1,\n     \"services\": [],\n     \"password\": \"123456\"\n     }'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"first_name\": \"John\",\n   \"last_name\": \"Doe\",\n   \"email\": \"john@example.com\",\n   \"clinic_id\": 1,\n   \"role_id\": 1,\n   \"services\": [],\n   \"password\": \"123456\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"/api/v1/vets\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/api/v1/vets\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"first_name\": \"John\",\n   \"last_name\": \"Doe\",\n   \"email\": \"john@example.com\",\n   \"clinic_id\": 1,\n   \"role_id\": 1,\n   \"services\": [],\n   \"password\": \"123456\"\n})\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/api/v1/vets\"\n\npayload = json.dumps({\n   \"first_name\": \"John\",\n   \"last_name\": \"Doe\",\n   \"email\": \"john@example.com\",\n   \"clinic_id\": 1,\n   \"role_id\": 1,\n   \"services\": [],\n   \"password\": \"123456\"\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-201",
          "language": "201",
          "code": "// successful operation\n{\n  \"data\": {\n    \"id\": 1,\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"full_name\": \"John Doe\",\n    \"name_with_title\": \"Dr. John Doe\",\n    \"email\": \"vet@example.com\",\n    \"phone\": \"123456789\",\n    \"avatar\": \"https://vet.digitail.io/images/profilepic.jpg\",\n    \"stamp\": \"https://vet.digitail.io/images/signature.jpg\",\n    \"license_number\": \"123456789\",\n    \"job_title\": \"Dr.\",\n    \"deleted_at\": \"\",\n    \"active\": true,\n    \"video_link\": \"https://digitail.com/video\",\n    \"public_appointment_link\": \"https://digitail.com/clinics/clinic-slug/vet-slug\",\n    \"type\": \"\",\n    \"two_factor_enabled\": true,\n    \"has_chat_user\": true\n  }\n}"
        }
      ],
      "selectedLanguageId": "response-0-201"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}