All URIs are relative to https://accounts.twilio.com
| Method | HTTP request | Description |
|---|---|---|
| CreateCredentialPublicKey | Post /v1/Credentials/PublicKeys | |
| DeleteCredentialPublicKey | Delete /v1/Credentials/PublicKeys/{Sid} | |
| FetchCredentialPublicKey | Get /v1/Credentials/PublicKeys/{Sid} | |
| ListCredentialPublicKey | Get /v1/Credentials/PublicKeys | |
| UpdateCredentialPublicKey | Post /v1/Credentials/PublicKeys/{Sid} |
AccountsV1CredentialPublicKey CreateCredentialPublicKey(ctx, optional)
Create a new Public Key Credential
This endpoint does not need any path parameter.
Other parameters are passed through a pointer to a CreateCredentialPublicKeyParams struct
| Name | Type | Description |
|---|---|---|
| PublicKey | string | A URL encoded representation of the public key. For example, -----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY----- |
| FriendlyName | string | A descriptive string that you create to describe the resource. It can be up to 64 characters long. |
| 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 |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteCredentialPublicKey(ctx, Sid)
Delete a Credential from your account
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
| Sid | string | The Twilio-provided string that uniquely identifies the PublicKey resource to delete. |
Other parameters are passed through a pointer to a DeleteCredentialPublicKeyParams struct
| Name | Type | Description |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountsV1CredentialPublicKey FetchCredentialPublicKey(ctx, Sid)
Fetch the public key specified by the provided Credential Sid
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
| Sid | string | The Twilio-provided string that uniquely identifies the PublicKey resource to fetch. |
Other parameters are passed through a pointer to a FetchCredentialPublicKeyParams struct
| Name | Type | Description |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]AccountsV1CredentialPublicKey ListCredentialPublicKey(ctx, optional)
Retrieves a collection of Public Key Credentials belonging to the account used to make the request
This endpoint does not need any path parameter.
Other parameters are passed through a pointer to a ListCredentialPublicKeyParams struct
| Name | Type | Description |
|---|---|---|
| PageSize | int64 | How many resources to return in each list page. The default is 50, and the maximum is 1000. |
| Limit | int64 | Max number of records to return. |
[]AccountsV1CredentialPublicKey
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccountsV1CredentialPublicKey UpdateCredentialPublicKey(ctx, Sidoptional)
Modify the properties of a given Account
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. |
| Sid | string | The Twilio-provided string that uniquely identifies the PublicKey resource to update. |
Other parameters are passed through a pointer to a UpdateCredentialPublicKeyParams struct
| Name | Type | Description |
|---|---|---|
| FriendlyName | string | A descriptive string that you create to describe the resource. It can be up to 64 characters long. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]