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

# /concierges

# 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": {
    "/concierges": {
      "post": {
        "tags": [
          "Concierge"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/CreateConciergeBody"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/ConciergeResponse"
          },
          "400": {
            "$ref": "#/components/responses/CreateConciergeErrorResponse"
          },
          "401": {
            "$ref": "#/components/responses/BadTokenErrorResponse"
          },
          "500": {
            "$ref": "#/components/responses/ErrorResponse"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Concierge": {
        "type": "object",
        "required": [
          "id",
          "name",
          "firstname",
          "email",
          "phone",
          "is_admin",
          "status",
          "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_admin": {
            "type": "boolean",
            "nullable": false
          },
          "status": {
            "$ref": "#/components/schemas/ConciergeStatus"
          },
          "metadata": {
            "type": "object",
            "nullable": false,
            "additionalProperties": true
          }
        }
      },
      "ConciergeStatus": {
        "type": "string",
        "nullable": false,
        "enum": [
          "invitation",
          "valid",
          "disabled"
        ]
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "requestBodies": {
      "CreateConciergeBody": {
        "description": "",
        "content": {
          "application/x-www-form-urlencoded": {
            "schema": {
              "type": "object",
              "required": [
                "name",
                "firstname",
                "email",
                "phone"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "nullable": false
                },
                "firstname": {
                  "type": "string",
                  "nullable": false
                },
                "email": {
                  "type": "string",
                  "format": "email",
                  "nullable": false
                },
                "phone": {
                  "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",
              "required": [
                "name",
                "firstname",
                "email",
                "phone"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "nullable": false
                },
                "firstname": {
                  "type": "string",
                  "nullable": false
                },
                "email": {
                  "type": "string",
                  "format": "email",
                  "nullable": false
                },
                "phone": {
                  "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",
              "required": [
                "name",
                "firstname",
                "email",
                "phone"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "nullable": false
                },
                "firstname": {
                  "type": "string",
                  "nullable": false
                },
                "email": {
                  "type": "string",
                  "format": "email",
                  "nullable": false
                },
                "phone": {
                  "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": {
      "ErrorResponse": {
        "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",
                  "nullable": false
                }
              }
            }
          }
        }
      },
      "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
                }
              }
            }
          }
        }
      },
      "CreateConciergeErrorResponse": {
        "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.concierge-name-cant-be-empty",
                    "error.concierge-firstname-cant-be-empty",
                    "error.concierge-email-cant-be-empty",
                    "error.concierge-email-not-valid",
                    "error.concierge-phone-cant-be-empty",
                    "error.concierge-phone-not-valid",
                    "error.metadata-not-valid"
                  ]
                }
              }
            }
          }
        }
      },
      "ConciergeResponse": {
        "description": "",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "success",
                "data"
              ],
              "properties": {
                "success": {
                  "type": "boolean",
                  "default": true,
                  "nullable": false
                },
                "data": {
                  "$ref": "#/components/schemas/Concierge"
                }
              }
            }
          }
        }
      }
    }
  },
  "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
    }
  }
}
```