---
updatedAt: 2025-05-12T20:22:28.000Z
agentTools:
  projectIndex: https://docs.etherfax.net/llms.txt
---

# /accounts/pkinfo

Sets the public key for this account.

Removing a Public Key

To remove a public key from an account, simply set the PublicKey parameter in the body to null.

```
{
  PublicKey: null
}
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "etherfax-rest-api-30",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://na.connect.etherfax.net/rest/3.0/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/accounts/pkinfo": {
      "post": {
        "summary": "/accounts/pkinfo",
        "description": "Sets the public key for this account.",
        "operationId": "accounts-pkino",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "PublicKey": {
                    "type": "string",
                    "description": "This field contains the base64 encoded contents of the public key file (in PEM format) associated with the account."
                  }
                }
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "PublicKey": {
                    "type": "string",
                    "description": "This field contains the base64 encoded contents of the public key file (in PEM format) associated with the account."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Authorization",
        "value": "Basic"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```