> ## Documentation Index
> Fetch the complete documentation index at: https://plivo.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a profile

> Create a business profile for 10DLC brand registration

This API lets you create a business profile for your end customers.

#### API Endpoint

```text POST     theme={null}
https://api.plivo.com/v1/Account/{auth_id}/Profile/
```

### Arguments

<table><tbody><tr><td><strong>profile\_alias<br />string<br />required</strong></td><td><p>A friendly name for your profile.</p></td></tr><tr><td><strong>customer\_type<br />string<br />required</strong></td><td><p>Indicates the nature of your operations.</p><p>Allowed values: `DIRECT`, `RESELLER`.</p><p>Select `RESELLER` if your business provides communication services such as messaging and voice calling to other businesses.</p></td></tr><tr><td><strong>entity\_type<br />string<br />required</strong></td><td><p>Indicates ownership of the company.</p><p>Allowed values: `PRIVATE`, `PUBLIC`, `NON_PROFIT`, `GOVERNMENT`, `INDIVIDUAL`.</p></td></tr><tr><td><strong>company\_name<br />string<br />required</strong></td><td><p>Legal name of the company.</p></td></tr><tr><td><strong>vertical<br />string<br />required</strong></td><td><p>Indicates industry.</p><p>Allowed values: `PROFESSIONAL`, `REAL_ESTATE`, `HEALTHCARE`, `HUMAN_RESOURCES`, `ENERGY`,`ENTERTAINMENT`, `RETAIL`, `TRANSPORTATION`,`AGRICULTURE`,`INSURANCE`,`POSTAL`,`EDUCATION`,`HOSPITALITY`, `FINANCIAL`, `POLITICAL`, `GAMBLING`, `LEGAL`, `CONSTRUCTION`, `NGO`, `MANUFACTURING`, `GOVERNMENT`, `TECHNOLOGY`, `COMMUNICATION`</p></td></tr><tr><td><strong>ein<br />integer</strong></td><td><p>Employer Identification Number.</p><p>Plivo strongly recommends providing your EIN if your company is registered to unlock premium features like high throughput for Plivo products.</p></td></tr><tr><td><strong>ein\_issuing\_country<br />string</strong></td><td><p>The ISO country code of the country that issued the EIN.</p></td></tr><tr><td><strong>address<br />object<br />required</strong></td><td><p>Valid postal address of the company.</p>`{"street": "","city": "","state": "","postal_code": "","country": ""}`<p>`state`: A valid state code, e.g. TX for Texas.<br />`postal_code`: ZIP code.<br />`country`: ISO alpha-2 country code (US).<br /></p></td></tr><tr><td><strong>authorized\_contact<br />object<br />required</strong></td><td><p>Authorized contact person at the company.</p><p>"first\_name": "John",<br />"last\_name": "Doe",<br />"email": "[john@example.com](mailto:john@example.com)",<br />"title": "Mr",<br />"seniority": "admin",<br />"phone": ""</p><p>Fields `first_name` and `last_name` are free-form.</p>`email`: Email address.<br />`title`: Salutation of the contact at the given company.<br />`seniority`: Allowed values: `DIRECTOR`, `GM`, `VP`, `CEO`, `CFO`, `GENERAL_COUNSEL`, `OTHER`.<br />`phone`: Company phone number in E.164 format.<br /></td></tr><tr><td><strong>stock\_symbol<br />string</strong></td><td><p>Stock symbol of the company.</p></td></tr><tr><td><strong>stock\_exchange<br />enum</strong></td><td><p>Stock exchange where your company is listed.</p><p>Allowed values: `NASDAQ`, `NYSE`, `AMEX`, `AMX`, `ASX`, `B3`, `BME`, `BSE`, `FRA`, `ICEX`,`JPX`, `JSE`, `KRX`,`LON`, `NSE`, `OMX`, `SEHK`, `SGX`, `SSE`, `STO`, `SWX`, `SZSE`, `TSX`, `TWSE`, `VSE`, `OTHER`</p></td></tr><tr><td><strong>alt\_business\_id<br />string</strong></td><td><p>Alternate business identification number.</p></td></tr><tr><td><strong>alt\_business\_id\_type<br />enum</strong></td><td><p>Alternate business ID type.</p><p>Allowed values: `DUNS`,`LEI`, `GIIN`, `NONE`</p></td></tr><tr><td><strong>website<br />string</strong></td><td><p>Website of the business.</p></td></tr><tr><td><strong>plivo\_subaccount<br />string</strong></td><td><p>Subaccount mapped to the profile.</p></td></tr></tbody></table>

### Create a profile — individuals

If you use the Create a Profile API and specify `entity_type=INDIVIDUAL` you can skip fields like ein, ein\_issuing\_country, stock\_symbol, stock\_exchange, alt\_business\_id, and alt\_business\_id\_type.

### Returns

api\_id for the request, unique profile\_uuid, and success message

### Response

HTTP Status Code: 200

<RequestExample>
  ```py Python theme={null}
  import sys
  sys.path.append("../plivo-python")
  import plivo

  client = plivo.RestClient("<auth_id>", "<auth_token>")
  response = client.profile.create(
      profile_alias="profile name sample",
      customer_type="DIRECT",
      entity_type="PRIVATE",
      company_name="ABC Inc.",
      ein="123456789",
      ein_issuing_country="US",
      stock_symbol="ABC",
      stock_exchange="NSE",
      website="www.example.com",
      vertical="REAL_ESTATE",
      alt_business_id="",
      alt_business_id_type="NONE",
      plivo_subaccount="",
      address={
          "street": "123",
          "city": "New York",
          "state": "NY",
           "postal_code": "10001",
          "country": "US"
      },
      authorized_contact={
          "first_name": "john",
          "last_name": "con",
          "phone": "1876865565",
          "email": "xyz@plivo.com",
          "title": "Mr",
          "seniority": "admin"
      },
  )
  print(response)
  ```

  ```ruby Ruby theme={null}
  require "rubygems"
  require "/etc/plivo-ruby/lib/plivo.rb"
  include Plivo

  api = RestClient.new("<auth_id>", "<auth_token>")

  begin
          # Create Profile
          puts('Create Profile')

          authorized_contact_data = {
                  "first_name" => "ruby",
                  "last_name" => "test-1",
                  "email" => "vlc@gmail.com",
                  "title" => "Mr.",
                  "seniority" => "admin",
                  "phone" => "919539113734",
          }
      address_data = {
                  "street" => "Street Name",
                  "city" => "City Name",
                  "state" => "NY",
                  "postal_code" => "10001",
                  "country" => "US"
          }

          response = api.profile.create(  profile_alias: "pa1", 
                  customer_type: "DIRECT",
                  entity_type: "PRIVATE",
                  company_name: "vlc",
                  vertical: "ENERGY",
                  stock_symbol: "NSE",
                  stock_exchange: "NASDAQ",
                  alt_business_id: "NONE",
                  alt_business_id_type: "NONE",
                  ein: "123456789",
                  ein_issuing_country: "IN",
                  website: "www.vlc.com",
                  address: address_data,
                  authorized_contact: authorized_contact_data
          )
      puts response
  rescue PlivoRESTError => e
          puts 'Exception: ' + e.message
  end
  ```

  ```js Node theme={null}
  let plivo = require('plivo');

  var authorized_contact = {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john@example.com",
      "title": "manager",
      "seniority": "admin",
      "phone": "+12125551234"
  }
  var address = {
      "street": "660 Broadway",
      "city": "New York City",
      "state": "NY",
      "postal_code": "10001",
      "country": "US"
  }
  var client = new plivo.Client("<auth_id>", "<auth_token>");
  client.profile.create(
      "my_profile", // profile_alias
      "SA2025RK4E639VJFZAMS", // plivo_subaccount 
      "DIRECT", // customer_type
      "GOVERNMENT", // entity_type
      "ABC Inc", // compnay_name
      "111111111", // ein
      "PROFESSIONAL", // vertical
      "US", // ein_issuing_country
      "ABC", // stock_symbol
      "NASDAQ", // stock exchange
      "NONE", // alt_business_id_type
      "google.com", // website
      address,
      authorized_contact)
      .then(function (response) {
          console.log(response);
      })
      .catch(function (error) {
          console.log(error);
      });
  ```

  ```php PHP theme={null}
  <?php

  require '/etc/plivo-php/vendor/autoload.php';
  use Plivo\RestClient;

  $client = new RestClient("<auth_id>", "<auth_token>");

  $client
      ->client
      ->setTimeout(60);
  try
  {
      $authorized_contact = array(
          "first_name" => "John",
          "last_name" => "Doe",
          "email" => "john@example.com",
          "title" => "Mr",
          "seniority" => "admin",
          "phone" => "9381590950"
      );
      $address = array(
          "street" => "660 Broadway",
          "city" => "New York City",
          "state" => "NY",
          "postal_code" => "10001",
          "country" => "US"
      );
      $res = $client
          ->profile
          ->create("vishnu104", "", "DIRECT", "GOVERNMENT", "ABC Inc", "111111111", "PROFESSIONAL", "US", "ABC", "NASDAQ", "NONE", "google.com", $address, $authorized_contact);
      print_r($res);
  }
  catch(PlivoRestException $ex)
  {
      print_r($ex);
  }

  ?>
  ```

  ```java Java theme={null}
  package com.plivo.examples;
  import com.plivo.api.Plivo;
  import com.plivo.api.models.profile.Profile;
  import com.plivo.api.models.profile.ProfileAddResponse;
  import com.plivo.api.models.profile.ProfileAddress;
  import com.plivo.api.models.profile.ProfileAuthorizedContact;


  public class PlivoTest  {


     public static void main(String[] args) {


         Plivo.init("<auth_id>","<auth_token>");


         // Create Profile


         ProfileAddress address = new ProfileAddress("street name", "New York", "NY", "123456", "US");
         ProfileAuthorizedContact authorizedContact = new ProfileAuthorizedContact("firstname",
                 "lastname",
                 "12017135399",
                 "test@plivo.com",
                 "Mr.",
                 "admin");


         try {
             ProfileAddResponse response = Profile.creator("profile_alias-1", "DIRECT", "PRIVATE", "Plivo Inc",
                     "12345678", "IN", address, "ABC",
                     "NSE", "www.javasdk.com",
                     "ENERGY", "", "", "",
                     authorizedContact).create();
             System.out.println(response);
         } catch (Exception e) {
             e.printStackTrace();
         }
     }
  }
  ```

  ```csharp .NET theme={null}
  // Available in versions >= 5.9.0 (https://github.com/plivo/plivo-dotnet/releases/tag/v5.9.0)

  using System;
  using System.Collections.Generic;
  using Plivo;
  using Plivo.Exception;
  using Plivo.Resource.Profile;

  namespace dotnet_project
  {
      class Ten_dlc
      {
          static void Main(string[] args)
          {

              var api = new PlivoApi("<auth_id>", "<auth_token>");

              // Create a Profile
              try
              {
                  AuthorizedContact contact = new AuthorizedContact();
                  contact.Email = "john@example.com";
                  contact.Phone = "12025551234";
                  contact.FirstName = "John";
                  contact.LastName = "Doe";
                  contact.Seniority = "none";
                  contact.Title = "Mr";
                  Address address = new Address();
                  address.Street = "660 Broadway";
                  address.City = "New York";
                  address.PostalCode = "10001";
                  address.Country = "US";
                  var response = api.Profile.Create("john_profile_1", "", "RESELLER", "PUBLIC", "Company Name Inc",
                  "111111111", "PROFESSIONAL", "US", "ABC", "NASDAQ", "www.webistename.com", "NONE", contact, address);
                  Console.WriteLine(response);
              }
              catch (PlivoRestException e)
              {
                  Console.WriteLine("Exception: " + e.Message);
              }

          }
      }
  }
  ```

  ```go Go theme={null}
  package main

  import (
          "fmt"
          "os"

          plivo "github.com/plivo/plivo-go/v7"
  )

  var client *plivo.Client

  func initClient(authID, authToken string) {
          var er error
          copts := &plivo.ClientOptions{}
          client, er = plivo.NewClient(authID, authToken, copts)
          if er != nil {
                  panic(er)
          }
  }
  func main() {
          initClient("<auth_id>", "<auth_token>")
          //Profile create
          input := plivo.CreateProfileRequestParams{
                  ProfileAlias:         "api_reference_go",
                  CustomerType:        "DIRECT",
                  EntityType:          "PRIVATE",
                  CompanyName:         "golang",
                  Vertical:             "ENERGY",
                  StockSymbol:         "NSE",
                  StockExchange:       "NASDAQ",
                  AltBusinessidType: "NONE",
                  Ein:                  "123456789",
                  EinIssuingCountry:  "IN",
                  Website:              "www.google.com",
                  Address: &plivo.Address{
                          Street:      "Street Name",
                          City:        "City Name",
                          State:       "NY",
                          PostalCode: "10001",
                          Country:     "US",
                  },
                  AuthorizedContact: &plivo.AuthorizedContact{
                          FirstName: "goes",
                          LastName:  "lang",
                          Email:      "vlc@gmail.com",
                          Title:      "Mr.",
                          Seniority:  "admin",
                          Phone:      "919381590950",
                  },
          }
          response, err := client.Profile.Create(input)
          if err != nil {
                  fmt.Printf("Error occurred while creating profile. error:%+v\n", err)
                  os.Exit(1)
          } else {
                  fmt.Printf("%+v\n", response)
          }
  }
  ```

  ```sh cURL theme={null}
  curl -i --user auth_id:auth_token \
      -H 'Content-Type: application/json' \
      -d '{
          "profile_alias": "john_new",
          "customer_type": "reseller",
          "entity_type": "public",
          "company_name": "ABC Inc.",
          "vertical": "Entertainment",
          "plivo_subaccount" :"SA2025RK4E639VJFZAMM",
          "ein": "122321231",
          "ein_issuing_country":"US", 
          "address": {
              "street": "660 Broadway",
              "city": "New York City",
              "state": "NY",
              "postal_code": "10001",
              "country": "US"
          },
          "stock_symbol": "TESLA",
          "stock_exchange": "NYSE",
          "alt_business_id_type": "DUNS",
          "alt_business_id": "ABC",
          "website": "hibye.com",
          "authorized_contact": {
              "first_name": "John",
              "last_name": "Doe",
              "email": "john@example.com",
              "title": "manager",
              "seniority": "admin",
              "phone": "12125551234"
          }
      
      }' \
      https://api.plivo.com/v1/Account/{auth_id}/Profile/
  ```
</RequestExample>

### Response

```json theme={null}
{
    "api_id": "4e1f954c-baf3-11ec-bafe-0242ac110003",
    "message": "Profile created successfully.",
    "profile_uuid": "f19c4773-4ae6-4b75-92ea-9cf3ea4227d6"
}
```
