Add Tasks via API

You can programmatically create tasks on a t0ggles board using the API. This feature is available exclusively to board owners and requires an API key that can be generated in the board settings.

#Step 1: Generate API Key

Only board owners can generate API keys.

  1. Open your board and go to Board SettingsServices.

  2. Under API Key, click the Generate API Key button. Generate API Key

  3. Copy the generated key and store it somewhere safe — this is the only time you will see the full token. Generate API Key

  4. On future visits, only a masked portion of the key will be visible. Generate API Key

#Step 2: Make API Request

Use the following endpoint to create tasks:

POST https://t0ggles.com/api/v1/tasks

#Headers

{
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_KEY"
}

#Payload

The tasks parameter is an array of task objects. Each object supports the following fields:

#Required fields

FieldTypeDescription
titlestringTask title
projectKeystringProject key (e.g. SWIPER, OTHER)
descriptionTypestringOne of: markdown, html, text
descriptionContentstringTask description

#Optional fields

FieldTypeDescription
assignedUserEmailstringEmail of the board member
prioritystringOne of: low, medium, high
pinToTopbooleanWhether to pin the task to the top
tagsarrayArray of tag names
startDate, dueDatedateJS Date object or ISO date string
propertiesobjectMap of property names to values

#Response

FieldTypeDescription
successbooleanIndicates success
errorbooleanIndicates error (if any)
messagestringError message (if error is true)

#Example

const res = await fetch('https://t0ggles.com/api/v1/tasks', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer YOUR_API_KEY',
},
body: JSON.stringify({
tasks: [
{
title: 'Launch Campaign Planning',
projectKey: 'MARKETING',
assignedUserEmail: '[email protected]',
priority: 'high',
pinToTop: true,
tags: ['Urgent', 'Campaign'],
startDate: new Date(2025, 3, 15),
dueDate: new Date(2025, 3, 25),
descriptionType: 'markdown',
descriptionContent: `
## Launch Campaign Timeline
Tasks to complete before product launch:
- Finalize creatives and copy
- Schedule posts on all platforms
- Coordinate with influencers
**Deadline:** March 20
Contact: [Julia](mailto:[email protected])
`,
properties: {
// text type property
'Campaign Type': 'Product Launch',
// number type property
'Estimated Budget': 8000,
// checkbox type property
'Assets Ready': false,
// toggle type property
'Approval Needed': true,
// date type property
'Kickoff Date': new Date(2025, 3, 15),
// url type property
'Landing Page URL': 'https://company.com/launch',
// email type property
'Marketing Lead': '[email protected]',
// person type property
'Stakeholder': '[email protected]',
// select type property
'Region': 'North America',
// multi-select type property
'Channels': ['Instagram', 'LinkedIn'],
},
},
],
}),
});
// { success: true } or { error: true, message: 'error message' }
console.log(await res.json());

✅ Now your app or script can create tasks in t0ggles dynamically!