GET
/
task
/
search
JavaScript
import Tembo from '@tembo-io/sdk';

const client = new Tembo({
  apiKey: 'My API Key',
});

const response = await client.task.search({ q: 'authentication bug' });

console.log(response.issues);
{
  "issues": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "description": "<string>",
      "status": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "meta": {
    "totalCount": 123,
    "totalPages": 123,
    "currentPage": 123,
    "pageSize": 123,
    "hasNext": true,
    "hasPrevious": true
  },
  "query": "<string>"
}

Query Parameters

q
string
required

Search query to find issues by title or description

Minimum length: 1
Example:

"authentication bug"

limit
integer
default:10

Number of items to return per page (max 100)

Required range: 1 <= x <= 100
Example:

10

page
integer
default:1

Page number to retrieve (starts from 1)

Required range: x >= 1
Example:

1

Response

Successfully retrieved search results with pagination

issues
object[]
required
meta
object
required
query
string
required