# Submit identity certificate CSR (https://developer.godaddy.com/en/docs/references/rest/ans/submit-agent-identity-csr-by-agent-id)

---
title: Submit identity certificate CSR
description: >-
  Submits a Certificate Signing Request (CSR) for the agent's identity
  certificate.
full: true
---

Full description

> Submits a Certificate Signing Request (CSR) for the agent's identity certificate.  The response contains a "csrId", that is going to match the same field from CertificateResponse.

## POST /v1/agents/{agentId}/certificates/identity

Submit identity certificate CSR

Submits a Certificate Signing Request (CSR) for the agent's identity certificate.
The response contains a "csrId", that is going to match the same field from CertificateResponse.


### Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `agentId` | string | yes | Unique identifier of the agent (UUID format) |

### Request body (required)

CSR submission request

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/CsrSubmissionRequest`

### Responses

**202** — CSR accepted for processing

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/CsrSubmissionResponse`

**401** — Authentication failed

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/ErrorResponse`

**403** — Authorization failed

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/ErrorResponse`

**404** — Agent not found

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/ErrorResponse`

**422** — Invalid CSR request (semantic validation failure)

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/ErrorResponse`

**500** — Internal server error

Content-Type: `application/json`

Schema:

- schema reference: `#/components/schemas/ErrorResponse`
