> This page is for APIs.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# List Subscriber SIP credentials

GET https://%7BYour_Space_Name%7D.signalwire.com/api/fabric/resources/subscribers/{fabric_subscriber_id}/sip_endpoints

Returns the SIP Credentials owned by one [Subscriber](/docs/platform/subscribers). Use this subscriber-scoped collection when each subscriber manages one or more registering SIP devices. Use the project-scoped [List SIP credentials](/docs/apis/rest/sip-credentials/list-sip-credentials) for shared or independently managed devices.

#### Permissions

The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_, _Messaging_, _Fax_, or _Video_.

[Learn more about API scopes](/docs/platform/your-signalwire-api-space).

Reference: https://signalwire.com/docs/apis/rest/subscribers/sip-credentials/list-subscriber-sip-credentials

## Authentication

- `Authorization` header (basic auth, required) — SignalWire Basic Authentication using Project ID and API Token. The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password. Example: ``` Authorization: Basic base64(project_id:token) ```

## Request

### Path parameters

- `fabric_subscriber_id` (string, required) — Unique ID of a Fabric Subscriber.

## Response

### 200

The request has succeeded.

- `data` (list of SubscriberSIPEndpoint, required)
- `links` (SubscriberSipEndpointPaginationResponse, required)

## Errors

### 500 Internal Server Error

An internal server error occurred.

- `error` (enum, required)
  - Allowed values: `Internal Server Error`

## Types

### SubscriberSIPEndpoint

- `id` (string, required) — Unique ID of the Sip Endpoint.
- `username` (string, required) — Username of the Sip Endpoint.
- `caller_id` (string, required) — Caller ID of the Sip Endpoint.
- `send_as` (string, required) — Purchased or verified number
- `ciphers` (list of enum, required) — Ciphers of the Sip Endpoint.
  - Allowed values: `AEAD_AES_256_GCM_8`, `AES_256_CM_HMAC_SHA1_80`, `AES_CM_128_HMAC_SHA1_80`, `AES_256_CM_HMAC_SHA1_32`, `AES_CM_128_HMAC_SHA1_32`
- `codecs` (list of enum, required) — Codecs of the Sip Endpoint.
  - Allowed values: `PCMU`, `PCMA`, `G722`, `G729`, `OPUS`, `OPUS@48000H@20I`, `OPUS@24000H@20I`, `OPUS@16000H@20I`, `OPUS@8000H@20I`, `VP8`, `H264`
- `encryption` (enum, required) — Encryption requirement of the Sip Endpoint.
  - Allowed values: `required`, `optional`, `default`

### SubscriberSipEndpointPaginationResponse

- `self` (string, required) — Link of the current page
- `first` (string, required) — Link to the first page
- `next` (string, optional) — Link to the next page
- `prev` (string, optional) — The link to the previous page

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "acaa5c49-be5e-4477-bce0-48f4b23b7720",
      "username": "justice-league",
      "caller_id": "call-id-123",
      "send_as": "+14632322867",
      "ciphers": [
        "AEAD_AES_256_GCM_8"
      ],
      "codecs": [
        "PCMU"
      ],
      "encryption": "optional"
    }
  ],
  "links": {
    "self": "https://example.signalwire.com/api/fabric/resources/subscribers/d369a402-7b43-4512-8735-9d5e1f387814/sip_endpoints?page_number=0&page_size=50",
    "first": "https://example.signalwire.com/api/fabric/resources/subscribers/d369a402-7b43-4512-8735-9d5e1f387814/sip_endpoints?page_number=0&page_size=50",
    "next": "https://example.signalwire.com/api/fabric/resources/subscribers/d369a402-7b43-4512-8735-9d5e1f387814/sip_endpoints?page_number=1&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca",
    "prev": "https://example.signalwire.com/api/fabric/resources/subscribers/d369a402-7b43-4512-8735-9d5e1f387814/sip_endpoints?page_number=1&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca"
  }
}
```

**SDK Code**

```python
import requests

url = "https://{your_space_name}.signalwire.com/api/fabric/resources/subscribers/fabric_subscriber_id/sip_endpoints"

response = requests.get(url, auth=("<project_id>", "<api_token>"))

print(response.json())
```

```javascript
const url = 'https://{your_space_name}.signalwire.com/api/fabric/resources/subscribers/fabric_subscriber_id/sip_endpoints';
const credentials = btoa("<project_id>:<api_token>");

const options = {method: 'GET', headers: {Authorization: `Basic ${credentials}`}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://{your_space_name}.signalwire.com/api/fabric/resources/subscribers/fabric_subscriber_id/sip_endpoints"

	req, _ := http.NewRequest("GET", url, nil)

	req.SetBasicAuth("<project_id>", "<api_token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://{your_space_name}.signalwire.com/api/fabric/resources/subscribers/fabric_subscriber_id/sip_endpoints")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request.basic_auth("<project_id>", "<api_token>")

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://{your_space_name}.signalwire.com/api/fabric/resources/subscribers/fabric_subscriber_id/sip_endpoints")
  .basicAuth("<project_id>", "<api_token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://{your_space_name}.signalwire.com/api/fabric/resources/subscribers/fabric_subscriber_id/sip_endpoints', [
  'headers' => [
  ],
    'auth' => ['<project_id>', '<api_token>'],
]);

echo $response->getBody();
```

```csharp
using RestSharp;
using RestSharp.Authenticators;

var client = new RestClient("https://{your_space_name}.signalwire.com/api/fabric/resources/subscribers/fabric_subscriber_id/sip_endpoints");
client.Authenticator = new HttpBasicAuthenticator("<project_id>", "<api_token>");
var request = new RestRequest(Method.GET);

IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let credentials = Data("<project_id>:<api_token>".utf8).base64EncodedString()

let headers = ["Authorization": "Basic \(credentials)"]

let request = NSMutableURLRequest(url: NSURL(string: "https://{your_space_name}.signalwire.com/api/fabric/resources/subscribers/fabric_subscriber_id/sip_endpoints")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```