Create a new API


POST/api/v1/{APP_ID}/{API_KEY}/create

Create API

This endpoint creates a new API in SheetDB for an existing Google Spreadsheet. Before using this endpoint, make sure that the Google Spreadsheet already exists in your account and you have permissions to it.

Required attributes

  • Name
    url
    Type
    string
    Description

    A string containing the URL of the Google Spreadsheet for which the new API will be created.

JSON Response

{
    "success": true,
    "name": "Test name",
    "id": "xxxxxxxxxxxxx",
    "url": "https://sheetdb.io/api/v1/xxxxxxxxxxxxx"
}


POST/api/v1/{APP_ID}/{API_KEY}/create/json

Create API with JSON

This endpoint creates a new API in SheetDB based on provided JSON data. The API will create a new Google Spreadsheet with the JSON data, then generate the API for the newly created Spreadsheet. Before using this endpoint, ensure that the JSON data is properly formatted and available at url.

Required attributes

  • Name
    url
    Type
    string
    Description

    A string containing the URL of the JSON data to be used for creating the Google Spreadsheet and the new API.

Optional attributes

  • Name
    title
    Type
    string
    Description

    A string representing the desired name for both the API and the associated Google Spreadsheet.