Skip to content

Commit 420fc41

Browse files
jklein24AaryamanBhute
authored andcommitted
[skill] Add a note about the format of list responses. (#200)
1 parent 2032fbc commit 420fc41

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.claude/skills/grid-api/SKILL.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ Use this flow when the user asks for a "realtime quote" or "just in time" funded
434434

435435
## Error Handling
436436

437-
API responses follow this structure on success:
437+
Single-resource responses:
438438

439439
```json
440440
{
@@ -444,6 +444,19 @@ API responses follow this structure on success:
444444
}
445445
```
446446

447+
List responses return results in a `data` array with pagination fields:
448+
449+
```json
450+
{
451+
"data": [ ... ],
452+
"hasMore": true,
453+
"nextCursor": "...",
454+
"totalCount": 42
455+
}
456+
```
457+
458+
Use `jq '.data[]'` to iterate results or `jq '[.data[] | select(.currency == "NGN")]'` to filter.
459+
447460
On error:
448461

449462
```json

0 commit comments

Comments
 (0)