Use the Auto-generated API

Let your users manage thier rows with POST, GET, PUT, and DELETE requests while tracking your tenant's usage with the auto-generated API.

  • Admin User
    Author
    by Admin User
    4 days ago
  • Requirements:

    Goals:

    • Create an API Key

    • GET: List all the tasks

    • POST: Create a task

    • GET: Get a specific task

    • PUT: Update a task

    • DELETE: Delete a task

    • View the API Key Logs

    Steps

    💿 Go to the /app/acme-corp-1/settings/api/keys/new to create an API Key with /tasks permissions.

    Create API Key

    💿 Install Thunder Client for VS Code.

    💿 Create a GET request with the following values:

    💿 Click Send.

    You should get all the tasks in JSON format:

    Get Tasks

    💿 Before making a POST request to create a task, go to /app/acme-corp-1/projects, click on Edit on any project row and copy the ID from the URL.

    It should look something like this: cmjek8ugc00flqwbs7smzieku.

    💿 Create a POST request with the following values:

    Set the following JSON values:

    {
      "project": "cmjek8ugc00flqwbs7smzieku",
      "order": 2,
      "name": "Task 2",
      "dueDate": "2025-12-31",
      "priority": "High",
      "completed": false,
      "attachments": [
        {
          "name": "My image.png",
          "type": "image/png",
          "title": "My image",
          "file": "/img/logo-dark.png"
        }
      ]
    }
    

    You should get a 201 - Created response.

    Create Task

    💿 Grab the ID, and make a GET request:

    Get Task

    💿 Now, let's update the Task with a PUT request.

    JSON body:

    {
      "name": "New task name"
    }
    Update Task

    💿 Delete the Task:

    Delete Task

    💿 Finally, view the API Key logs.

    API Call Logs

    I hope this quick guide was useful! Let us know if you have any questions.

    We respect your privacy.

    TLDR: We use cookies for language selection, theme, and analytics. Learn more.

    NextRock Demo