> ## 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.

# Authentication

> Authenticate PHLO API requests — BasicAuth with Auth ID and Token

Plivo authenticates requests to its APIs with `BasicAuth` using your `AUTH ID` and `AUTH TOKEN`, which you can find on the overview page of the [console](https://cx.plivo.com/home).

<RequestExample>
  ```python Python theme={null}
  import plivo

  proxies = {
      'http': 'https://username:password@proxyurl:proxyport',
      'https': 'https://username:password@proxyurl:proxyport'
      }
  client = plivo.RestClient('<auth_id>', '<auth_token>', proxies=proxies,timeout=5)
  ```

  ```ruby Ruby theme={null}
  require 'rubygems'
  require 'plivo'

  proxy = {
  	proxy_host: "https://proxyurl",
  	proxy_port: "proxyport",
  	proxy_user: "username",
  	proxy_pass: "password"
  }
  api = RestClient.new("<auth_id>", "<auth_token>", proxy, timeout=5)
  ```

  ```javascript Node theme={null}
  var plivo = require('plivo');
  let options = {
  	'timeout': 5000, //ms
  	'host': 'https://proxyurl',
  	'port': 'proxyport',
  	auth: {
  		username: 'my-user',
  		password: 'my-password'
  	}
  }

  var client = new plivo.Client("<auth_id>", "<auth_token>", options);
  ```

  ```php PHP theme={null}
  <?php
  require 'vendor/autoload.php';
  use Plivo\RestClient;

  $client = new RestClient("<auth_id>", "<auth_token>", "<https://proxyurl>", "<proxyport>", "<username>", "<password>");
  $client->client->setTimeout(5)
  ```

  ```java Java theme={null}
  package com.plivo.api.samples.application;

  import com.plivo.api.Plivo;

  class AutheExample {
    public static void main(String [] args) {
      Plivo.init();
    }
  }
  ```

  ```csharp .NET theme={null}
  using System;
  using System.Collections.Generic;
  using Plivo;

  namespace PlivoExamples {
    internal class Program {
      public static void Main(string[] args) {
        var api = new PlivoApi(
          "<auth_id>", "<auth_token>",
          "<https://proxyurl>", "<proxyport>", "<username>", "<password>");
        api.Client.SetTimeout(10);
      }
    }
  }
  ```

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

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

  func main() {
  	client, err := plivo.NewClient("<auth_id>", "<auth_token>", &plivo.ClientOptions{})
  	if err != nil {
  		panic(err)
  	}
  }
  ```

  ```shell cURL theme={null}
  ```
</RequestExample>
