---
agentTools:
  projectIndex: https://keytocheck.readme.io/llms.txt
---

# /me

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "KeyToCheck",
    "description": "KeyToCheck API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.keytocheck.com/api",
      "description": "Main (production) server"
    },
    {
      "url": "https://apisandbox.keytocheck.com/api",
      "description": "Sandbox server for testing"
    }
  ],
  "paths": {
    "/me": {
      "put": {
        "tags": [
          "Me"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/UpdateUserBody"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/UserResponse"
          },
          "400": {
            "$ref": "#/components/responses/UpdateUserErrorResponse"
          },
          "401": {
            "$ref": "#/components/responses/BadTokenErrorResponse"
          },
          "500": {
            "$ref": "#/components/responses/AccountAlreadyExistsWithThisEmailErrorResponse"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "User": {
        "type": "object",
        "required": [
          "id",
          "name",
          "firstname",
          "email",
          "phone",
          "is_moral",
          "siret",
          "vat_number",
          "street",
          "zip",
          "city",
          "country",
          "metadata"
        ],
        "properties": {
          "id": {
            "type": "string",
            "nullable": false
          },
          "name": {
            "type": "string",
            "nullable": false
          },
          "firstname": {
            "type": "string",
            "nullable": false
          },
          "email": {
            "type": "string",
            "format": "email",
            "nullable": false
          },
          "phone": {
            "type": "string",
            "nullable": false
          },
          "is_moral": {
            "type": "boolean",
            "nullable": false
          },
          "siret": {
            "type": "string",
            "nullable": true
          },
          "vat_number": {
            "type": "string",
            "nullable": true
          },
          "street": {
            "type": "string",
            "nullable": true
          },
          "zip": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": false,
            "additionalProperties": true
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "requestBodies": {
      "UpdateUserBody": {
        "description": "",
        "content": {
          "application/x-www-form-urlencoded": {
            "schema": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "nullable": false
                },
                "firstname": {
                  "type": "string",
                  "nullable": false
                },
                "email": {
                  "type": "string",
                  "format": "email",
                  "nullable": false
                },
                "phone": {
                  "type": "string",
                  "nullable": false
                },
                "is_moral": {
                  "type": "boolean",
                  "nullable": false
                },
                "siret": {
                  "type": "boolean",
                  "nullable": false
                },
                "vat_number": {
                  "type": "string",
                  "nullable": false
                },
                "street": {
                  "type": "string",
                  "nullable": false
                },
                "zip": {
                  "type": "string",
                  "nullable": false
                },
                "city": {
                  "type": "string",
                  "nullable": false
                },
                "country": {
                  "type": "string",
                  "nullable": false
                },
                "metadata": {
                  "type": "object",
                  "nullable": false,
                  "description": "All keys can be unset by posting an empty string to metadata",
                  "additionalProperties": true
                }
              }
            }
          },
          "multipart/form-data": {
            "schema": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "nullable": false
                },
                "firstname": {
                  "type": "string",
                  "nullable": false
                },
                "email": {
                  "type": "string",
                  "format": "email",
                  "nullable": false
                },
                "phone": {
                  "type": "string",
                  "nullable": false
                },
                "is_moral": {
                  "type": "boolean",
                  "nullable": false
                },
                "siret": {
                  "type": "boolean",
                  "nullable": false
                },
                "vat_number": {
                  "type": "string",
                  "nullable": false
                },
                "street": {
                  "type": "string",
                  "nullable": false
                },
                "zip": {
                  "type": "string",
                  "nullable": false
                },
                "city": {
                  "type": "string",
                  "nullable": false
                },
                "country": {
                  "type": "string",
                  "nullable": false
                },
                "metadata": {
                  "type": "object",
                  "nullable": false,
                  "description": "All keys can be unset by posting an empty string to metadata",
                  "additionalProperties": true
                }
              }
            }
          },
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "nullable": false
                },
                "firstname": {
                  "type": "string",
                  "nullable": false
                },
                "email": {
                  "type": "string",
                  "format": "email",
                  "nullable": false
                },
                "phone": {
                  "type": "string",
                  "nullable": false
                },
                "is_moral": {
                  "type": "boolean",
                  "nullable": false
                },
                "siret": {
                  "type": "boolean",
                  "nullable": false
                },
                "vat_number": {
                  "type": "string",
                  "nullable": false
                },
                "street": {
                  "type": "string",
                  "nullable": false
                },
                "zip": {
                  "type": "string",
                  "nullable": false
                },
                "city": {
                  "type": "string",
                  "nullable": false
                },
                "country": {
                  "type": "string",
                  "nullable": false
                },
                "metadata": {
                  "type": "object",
                  "nullable": false,
                  "description": "All keys can be unset by posting an empty string to metadata",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "responses": {
      "BadTokenErrorResponse": {
        "description": "Access token is missing or invalid",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "success",
                "error",
                "message"
              ],
              "properties": {
                "success": {
                  "type": "boolean",
                  "default": false,
                  "nullable": false
                },
                "error": {
                  "type": "integer",
                  "default": 401,
                  "nullable": false
                },
                "message": {
                  "type": "string",
                  "default": "error.bad-token",
                  "nullable": false
                }
              }
            }
          }
        }
      },
      "UpdateUserErrorResponse": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "success",
                "error",
                "message"
              ],
              "properties": {
                "success": {
                  "type": "boolean",
                  "default": false,
                  "nullable": false
                },
                "error": {
                  "type": "integer",
                  "default": 400,
                  "nullable": false
                },
                "message": {
                  "type": "string",
                  "nullable": false,
                  "enum": [
                    "error.user-name-cant-be-empty",
                    "error.user-firstname-cant-be-empty",
                    "error.moral-user-dont-have-firstname",
                    "error.user-email-cant-be-empty",
                    "error.user-email-not-valid",
                    "error.user-phone-cant-be-empty",
                    "error.user-siret-cant-be-empty",
                    "error.user-vat-number-cant-be-empty",
                    "error.user-street-cant-be-empty",
                    "error.user-zip-cant-be-empty",
                    "error.user-city-cant-be-empty",
                    "error.user-country-cant-be-empty",
                    "error.user-country-not-valid",
                    "error.metadata-not-valid"
                  ]
                }
              }
            }
          }
        }
      },
      "AccountAlreadyExistsWithThisEmailErrorResponse": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "success",
                "error",
                "message"
              ],
              "properties": {
                "success": {
                  "type": "boolean",
                  "default": false,
                  "nullable": false
                },
                "error": {
                  "type": "integer",
                  "default": 500,
                  "nullable": false
                },
                "message": {
                  "type": "string",
                  "default": "error.account-already-exists-with-this-email",
                  "nullable": false
                }
              }
            }
          }
        }
      },
      "UserResponse": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "success",
                "data"
              ],
              "properties": {
                "success": {
                  "type": "boolean",
                  "default": true,
                  "nullable": false
                },
                "data": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 114,
      "2": 232,
      "3": 241,
      "4": 248,
      "5": 91,
      "6": 51,
      "7": 0,
      "8": 22,
      "9": 97,
      "10": 214,
      "11": 14
    }
  }
}
```