---
title: "get all accounts for a service provider"
method: GET
path: "/ServiceProviders/{ServiceProviderSid}/Accounts"
tags: ["Service Providers"]
---

# get all accounts for a service provider

`GET /ServiceProviders/{ServiceProviderSid}/Accounts`

<Error>This endpoint is only availble with an Admin or Service Provider API key</Error>

## Response `200`

account listing

- Account[]
  - `account_sid` string, uuid, required
  - `name` string, required
  - `sip_realm` string
  - `registration_hook` Webhook
    - `webhook_sid` string, uuid
    - `url` string, url, required
    - `method` 'get' | 'post'
    - `username` string
    - `password` string
  - `device_calling_application_sid` string, uuid
  - `service_provider_sid` string, uuid, required
  - `record_all_calls` boolean
  - `record_format` 'wav' | 'mp3'
  - `bucket_credential` object — Credentials for recording storage
    - `vendor` 'aws_s3' | 's3_compatible' | 'azure' | 'google'
    - `region` string
    - `name` string — name of the bucket
    - `access_key_id` string
    - `secret_access_key` string

## Other responses

- `403` — unauthorized
- `404` — service provider not found

---

[API](https://skmtc.net/jambonz/apis/jambonz-api.md) · [All operations](https://skmtc.net/jambonz/apis/jambonz-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jambonz/jambonz-api/revisions/56f317145d23/schema)
