---
updatedAt: 2026-08-03T21:02:51.000Z
agentTools:
  projectIndex: https://developers.envoy.com/hub/llms.txt
---

# Create a Desk

Create a desk.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Spaces API",
    "version": "0.1.0",
    "description": "The REST interface for the Envoy Spaces API and Rooms API."
  },
  "paths": {
    "/v1/desks": {
      "post": {
        "summary": "Create a Desk",
        "tags": [
          "Desks"
        ],
        "operationId": "createDesk",
        "description": "Create a desk.",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "desk": {
                    "$ref": "#/components/schemas/CreateDeskInput"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "spaces.write",
              "spaces.read"
            ]
          },
          {
            "ApiKeyAuth": []
          }
        ],
        "responses": {
          "default": {
            "description": "Desk!",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/Desk"
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "relationships": {
                          "type": "array",
                          "description": "Optional relationships to load with the `relationships` query param.",
                          "items": {
                            "type": "string"
                          }
                        },
                        "messages": {
                          "type": "array",
                          "description": "Optional scope information.",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ID": {
        "type": "string",
        "description": "The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `\"4\"`) or integer (such as `4`) input value will be accepted as an ID."
      },
      "String": {
        "type": "string",
        "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text."
      },
      "Boolean": {
        "type": "boolean",
        "description": "The `Boolean` scalar type represents `true` or `false`."
      },
      "Float": {
        "type": "number",
        "description": "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point)."
      },
      "DateTime": {
        "type": "string",
        "description": "A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.",
        "format": "date-time"
      },
      "Desk": {
        "type": "object",
        "properties": {
          "id": {
            "allOf": [
              {
                "description": "The unique identifier of the desk."
              },
              {
                "$ref": "#/components/schemas/ID"
              }
            ]
          },
          "name": {
            "allOf": [
              {
                "description": "The name of the desk."
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          },
          "createdAt": {
            "allOf": [
              {
                "description": "The date and time (ISO 8601 format) when the desk was created."
              },
              {
                "$ref": "#/components/schemas/DateTime"
              }
            ]
          },
          "updatedAt": {
            "allOf": [
              {
                "description": "The date and time (ISO 8601 format) when the desk was last updated."
              },
              {
                "$ref": "#/components/schemas/DateTime"
              }
            ]
          },
          "isAvailable": {
            "allOf": [
              {
                "description": "Denotes whether the desk is currently occupied or free."
              },
              {
                "$ref": "#/components/schemas/Boolean",
                "type": "boolean"
              }
            ]
          },
          "assignedTo": {
            "allOf": [
              {
                "description": "The assigned user's email if the desk is pre-assigned."
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          },
          "locationId": {
            "allOf": [
              {
                "description": "The unique identifier of the location the space belongs to."
              },
              {
                "$ref": "#/components/schemas/ID"
              }
            ]
          },
          "floorId": {
            "allOf": [
              {
                "description": "The unique identifier of the level / floor within the location that the space belongs to."
              },
              {
                "$ref": "#/components/schemas/ID"
              }
            ]
          },
          "floorName": {
            "allOf": [
              {
                "description": "A short descriptor of the floor that the space belongs to. This is displayed to the user when they reserve or find a space."
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          },
          "neighborhoodId": {
            "allOf": [
              {
                "description": "The unique identifier of the zone or collection of spaces / neighborhoods that the space belongs to."
              },
              {
                "$ref": "#/components/schemas/ID"
              }
            ]
          },
          "neighborhoodName": {
            "allOf": [
              {
                "description": "A short descriptor of the neighborhood that the space belongs to."
              },
              {
                "$ref": "#/components/schemas/String",
                "type": "string"
              }
            ]
          },
          "xPos": {
            "allOf": [
              {
                "description": "The x coordinate position the desk is placed on the Map."
              },
              {
                "$ref": "#/components/schemas/Float",
                "type": "number"
              }
            ]
          },
          "yPos": {
            "allOf": [
              {
                "description": "The y coordinate the desk is placed on the Map."
              },
              {
                "$ref": "#/components/schemas/Float",
                "type": "number"
              }
            ]
          }
        }
      },
      "CreateDeskInput": {
        "type": "object",
        "properties": {
          "locationId": {
            "$ref": "#/components/schemas/String",
            "description": "The id of the location where you would like to create the desk.",
            "type": "string"
          },
          "floorId": {
            "$ref": "#/components/schemas/String",
            "description": "The id of the floor where you would like to create the desk."
          },
          "name": {
            "$ref": "#/components/schemas/String",
            "description": "The name you would like to assign to the desk."
          },
          "neighborhoodId": {
            "$ref": "#/components/schemas/String",
            "description": "If you would like to assign this desk to a specific neighborhood, please provide that neighborhoods id here.",
            "type": "string"
          },
          "assignedTo": {
            "$ref": "#/components/schemas/String",
            "description": "If you would like to assign this desk to a specific employee, please provide that employees email here.",
            "type": "string"
          },
          "enabled": {
            "$ref": "#/components/schemas/Boolean",
            "description": "If you would like the desk enabled/disabled for booking after creating it.",
            "type": "boolean"
          },
          "xPos": {
            "$ref": "#/components/schemas/Float",
            "description": "The normalized x coordinate position the desk is placed on the Map. This must be a decimal value between 0 and 1.",
            "type": "number"
          },
          "yPos": {
            "$ref": "#/components/schemas/Float",
            "description": "The normalized y coordinate position the desk is placed on the Map. This must be a decimal value between 0 and 1.",
            "type": "number"
          }
        },
        "required": [
          "locationId",
          "floorId",
          "name"
        ]
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "/authorize",
            "tokenUrl": "/token",
            "scopes": {
              "flows.read": "read flows",
              "agreements.read": "read agreements",
              "employees.read": "read employees",
              "entries.read": "read entries",
              "invites.read": "read invites",
              "locations.read": "read locations",
              "reservations.read": "read reservations",
              "spaces.read": "read spaces",
              "sign-in-fields.read": "read sign-in-fields",
              "signed-documents.read": "read signed-documents",
              "reservations.write": "write reservations"
            }
          }
        }
      },
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  },
  "servers": [
    {
      "url": "https://api.envoy.com",
      "description": ""
    }
  ]
}
```