# `Twilio.Accounts.V1.Credential.PublicKeyService`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/accounts/v1/credential/public_key_service.ex#L2)

User provided public keys

Operations: `list`, `create`, `fetch`, `update`, `delete`

# `create`

```elixir
@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Accounts.V1.Credential.PublicKey.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Create a new Public Key Credential

Operation: `CreateCredentialPublicKey` | Tags: AccountsV1PublicKey

## Required Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `PublicKey` | string | A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----` |
## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `AccountSid` | string | The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `FriendlyName` | string | A descriptive string that you create to describe the resource. It can be up to 64 characters long. |

# `delete`

```elixir
@spec delete(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, map()} | {:ok, map(), map()} | :ok | {:error, Twilio.Error.t()}
```

Delete a Credential from your account

Operation: `DeleteCredentialPublicKey` | Tags: AccountsV1PublicKey

# `fetch`

```elixir
@spec fetch(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.Accounts.V1.Credential.PublicKey.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Fetch the public key specified by the provided Credential Sid

Operation: `FetchCredentialPublicKey` | Tags: AccountsV1PublicKey

# `list`

```elixir
@spec list(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Retrieves a collection of Public Key Credentials belonging to the account used to make the request

Operation: `ListCredentialPublicKey` | Tags: AccountsV1PublicKey

# `stream`

```elixir
@spec stream(Twilio.Client.t(), map(), keyword()) :: Enumerable.t()
```

Stream: Retrieves a collection of Public Key Credentials belonging to the account used to make the request (lazy auto-pagination).

# `update`

```elixir
@spec update(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Accounts.V1.Credential.PublicKey.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}
```

Modify the properties of a given Account

Operation: `UpdateCredentialPublicKey` | Tags: AccountsV1PublicKey

## Optional Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `FriendlyName` | string | A descriptive string that you create to describe the resource. It can be up to 64 characters long. |

---

*Consult [api-reference.md](api-reference.md) for complete listing*
