Get selected fields for a batch of cards (cross-board)
GET
/cards/info/batch
const url = 'https://projects.work.optidata.cloud/api/cards/info/batch?ids%5B%5D=1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://projects.work.optidata.cloud/api/cards/info/batch?ids%5B%5D=1' \ --header 'Authorization: Bearer <token>'Returns lightweight info for cards by id across all boards the caller is
a member of (inaccessible ids are silently omitted). By default returns
id, title and number; use options[fields][] to choose fields and
options[with][] to embed the parent board ({id, name, icon}) or
column ({id, name}).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”ids[]
required
Array<integer>
Card ids to fetch.
options[fields][]
Array<string>
Fields to include (id is always included).
options[with][]
Array<string>
Relations to embed.
Responses
Section titled “Responses”Requested cards (accessible ones only).
Media typeapplication/json
object
cards
Array<object>
Partial card — contains id plus the requested fields/relations.
object
Example
{ "cards": [ { "id": 9001, "title": "Draft homepage copy", "number": 1, "board_id": 42, "board": { "id": 42, "name": "Website Redesign", "icon": "🎨" } } ]}Missing, invalid or expired bearer passport.
Media typeapplication/json
object
error
string
Example
{ "error": "JWT passport exception: Missing bearer token in request"}The authenticated user lacks the required board permission.
Media typeapplication/json
object
message
string
Example
{ "message": "This action is unauthorized."}Validation failed.
Media typeapplication/json
object
message
First validation error message.
string
errors
Map of field name → list of error messages.
object
key
additional properties
Array<string>
Example
{ "message": "The name field is required.", "errors": { "name": [ "The name field is required." ] }}