---
title: "POST /2010-04-01/Accounts/{AccountSid}/Keys.json"
method: POST
path: "/2010-04-01/Accounts/{AccountSid}/Keys.json"
tags: ["Api20100401NewKey"]
---

# POST /2010-04-01/Accounts/{AccountSid}/Keys.json

`POST /2010-04-01/Accounts/{AccountSid}/Keys.json`

## Path parameters

- `AccountSid` string, required

## Response `201`

Created

- ApiV2010AccountNewKey
  - `sid` string, nullable — The unique string that that we created to identify the NewKey resource. You will use this as the basic-auth `user` when authenticating to the API.
  - `friendly_name` string, nullable — The string that you assigned to describe the resource.
  - `date_created` string, date-time-rfc-2822, nullable — The date and time in GMT that the API Key was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
  - `date_updated` string, date-time-rfc-2822, nullable — The date and time in GMT that the new API Key was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
  - `secret` string, nullable — The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth `password`). **Note that for security reasons, this field is ONLY returned when the API Key is first created.**

---

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