{"files":{"SKILL.md":"---\nname: greenwire-public-api\ndescription: \"Greenwire Public API skill. Use when working with Greenwire Public for volunteers, groups, events. Covers 6 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Greenwire Public API\nAPI version: 1.0.0\n\n## Auth\nNo authentication required.\n\n## Base URL\nhttps://greenwire.greenpeace.org/api/public\n\n## Setup\n1. No auth setup needed\n2. GET /volunteers -- gets an array of `volunteer` object. mandatory query param of **domain** determines the site / country the volunteers are from.\n3. Explore available endpoints below\n\n## Endpoints\n6 endpoints across 3 groups. See references/api-spec.lap for full details.\n\n### Volunteers\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /volunteers | Gets an array of `Volunteer` object. Mandatory query param of **domain** determines the site / country the volunteers are from. |\n| GET | /volunteers/{UUID} | Get one specific `Volunteer` object by specifying its UUID in the url path. |\n\n### Groups\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /groups | Gets an array of `Group` object. Mandatory query param of **domain** determines the site / country the group belongs to. |\n| GET | /groups/{UUID} | Get one `Group` object by specifying its UUID in the url path. |\n\n### Events\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /events | Return the upcoming events (e.g. start date >= today). Gets an array of `Event` object. Mandatory query param of **domain** determines the site / country the event belongs to. |\n| GET | /events/{UUID} | Get one `Event` object by specifying its UUID in the url path. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all volunteers?\" -> GET /volunteers\n- \"Get volunteer details?\" -> GET /volunteers/{UUID}\n- \"List all groups?\" -> GET /groups\n- \"Get group details?\" -> GET /groups/{UUID}\n- \"List all events?\" -> GET /events\n- \"Get event details?\" -> GET /events/{UUID}\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Paginated endpoints accept limit/offset or cursor parameters\n- Error responses include status codes and descriptions in the spec\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Greenwire Public API\n@base https://greenwire.greenpeace.org/api/public\n@version 1.0.0\n@endpoints 6\n@toc volunteers(2), groups(2), events(2)\n\n@group volunteers\n@endpoint GET /volunteers\n@desc Gets an array of `Volunteer` object. Mandatory query param of **domain** determines the site / country the volunteers are from.\n@required {domain: any # the site the users are registered on, example: netherlands}\n@optional {limit: any # the number of desired records. Default is 5., must_have_default_avatar: any # 1 or 0. filter on people that have the default avatar or not.}\n@returns(200) Successful response\n\n@endpoint GET /volunteers/{UUID}\n@desc Get one specific `Volunteer` object by specifying its UUID in the url path.\n@required {UUID: any}\n@returns(200) Successful response\n@errors {400: Not found}\n\n@endgroup\n\n@group groups\n@endpoint GET /groups\n@desc Gets an array of `Group` object. Mandatory query param of **domain** determines the site / country the group belongs to.\n@required {domain: any # the site the groups belongs to, example: netherlands}\n@optional {limit: any # the number of desired records}\n@returns(200) Successful response\n\n@endpoint GET /groups/{UUID}\n@desc Get one `Group` object by specifying its UUID in the url path.\n@required {UUID: any}\n@returns(200) Successful response\n@errors {400: Not found}\n\n@endgroup\n\n@group events\n@endpoint GET /events\n@desc Return the upcoming events (e.g. start date >= today). Gets an array of `Event` object. Mandatory query param of **domain** determines the site / country the event belongs to.\n@required {domain: any # the site the groups belongs to, example: netherlands}\n@optional {limit: any # the number of desired records}\n@returns(200) Successful response\n\n@endpoint GET /events/{UUID}\n@desc Get one `Event` object by specifying its UUID in the url path.\n@required {UUID: any}\n@returns(200) Successful response\n@errors {400: Not found}\n\n@endgroup\n\n@end\n"}}