# Method: projects.locations.externalAccountKeys.create

- [HTTP request](https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rest/v1/projects.locations.externalAccountKeys/create#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rest/v1/projects.locations.externalAccountKeys/create#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rest/v1/projects.locations.externalAccountKeys/create#body.request_body)
- [Response body](https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rest/v1/projects.locations.externalAccountKeys/create#body.response_body)
- [Authorization Scopes](https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rest/v1/projects.locations.externalAccountKeys/create#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rest/v1/projects.locations.externalAccountKeys/create#body.aspect_1)

Creates a new `https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rest/v1/projects.locations.externalAccountKeys#ExternalAccountKey` bound to the project.

### HTTP request

`POST https://publicca.googleapis.com/v1/{parent=projects/*/locations/*}/externalAccountKeys`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The parent resource where this externalAccountKey will be created. Format: projects/\[projectId\]/locations/\[location\]. At present only the "global" location is supported. |

### Request body

The request body contains an instance of `https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rest/v1/projects.locations.externalAccountKeys#ExternalAccountKey`.

### Response body

If successful, the response body contains a newly created instance of `https://docs.cloud.google.com/certificate-manager/docs/reference/public-ca/rest/v1/projects.locations.externalAccountKeys#ExternalAccountKey`.

### Authorization Scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:

- `publicca.externalAccountKeys.create`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).