# Get ACME account status

ACME Account URL shall never be changed. So it's not strictly necessary to go through the authorization process each time, if the URL is already known.

However, it might be required to get the actual status of the ACME Account. In order to do so, ACME client must send a POST request with an empty payload to the ACME Account URL:

```
POST https://stica.peeringhub.io/acme/acct/6A1AD155B73D45448E7B832888C3EF54
Content-Type: application/jose+json
Content-Length: 429
{
  "protected" : BASE64URL(
    {
      "alg" : "ES256",
      "nonce" : "E48E837729264688A335A0092370EF3B",
      "url" : "https://stica.peeringhub.io/acme/acct/6A1AD155B73D45448E7B832888C3EF54",
      "kid" : "https://stica.peeringhub.io/acme/acct/6A1AD155B73D45448E7B832888C3EF54"
    }
  ),
  "payload": "",
  "signature" : "<base64url-encoded signature>"
}
```

ACME server should reply with an ACME Account object, which includes a status, and orders URL, from which client may retrieve a list of active certificate orders.

```
HTTP/1.1 200 OK
Replay-Nonce: 60D446A8AEB04EB5BF28219E746CE4E3
Content-Type: application/json; charset=utf-8
Content-Length: 106
{
  "status" : "valid",
  "orders" : "https://stica.peeringhub.io/acme/orders/6A1AD155B73D45448E7B832888C3EF54"
}
```

Possible values of the ACME Account status are:

* "valid" - account is active
* "deactivated" - disabled by the user
* "revoked" - disabled by the server


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.peeringhub.io/guides/generating-certificate/acme-protocol-reference/get-acme-account-status.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
