{"files":{"SKILL.md":"---\nname: zeit-api\ndescription: \"ZEIT API skill. Use when working with ZEIT for integrations, domains. Covers 5 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# ZEIT API\nAPI version: v2019-01-07\n\n## Auth\nBearer bearer | OAuth2\n\n## Base URL\nhttps://api.zeit.co\n\n## Setup\n1. Set Authorization header with Bearer token\n2. GET /v1/integrations/webhooks -- get a list of existent webhooks\n3. POST /v1/integrations/webhooks -- create first webhook\n\n## Endpoints\n5 endpoints across 2 groups. See references/api-spec.lap for full details.\n\n### Integrations\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /v1/integrations/webhooks | Get a list of existent webhooks |\n| POST | /v1/integrations/webhooks | Create a new webhook |\n| DELETE | /v1/integrations/webhooks/:id | Remove a webhook by id |\n\n### Domains\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /v4/domains | Gets a list of domains registered for the authenticating user. |\n| GET | /v4/domains/{name} | Get a domain for the authenticated user by name |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all webhooks?\" -> GET /v1/integrations/webhooks\n- \"Create a webhook?\" -> POST /v1/integrations/webhooks\n- \"List all domains?\" -> GET /v4/domains\n- \"Get domain details?\" -> GET /v4/domains/{name}\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\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 ZEIT API\n@base https://api.zeit.co\n@version v2019-01-07\n@auth Bearer bearer | OAuth2\n@endpoints 5\n@toc integrations(3), domains(2)\n\n@group integrations\n@endpoint GET /v1/integrations/webhooks\n@desc Get a list of existent webhooks\n@optional {teamId: str # A team id in case you want to act on behalf of a team}\n@returns(200) OK\n\n@endpoint POST /v1/integrations/webhooks\n@desc Create a new webhook\n@required {name: str # A name to assign to the webhook, url: str # The URL ZEIT will post to when events happen}\n@optional {teamId: str # A team id in case you want to act on behalf of a team}\n@returns(201) {id: str, events: [str], url: str, name: str, configurationId: str, createdAt: int, ownerId: str} # OK\n\n@endpoint DELETE /v1/integrations/webhooks/:id\n@desc Remove a webhook by id\n@optional {teamId: str # A team id in case you want to act on behalf of a team}\n@returns(204) OK\n\n@endgroup\n\n@group domains\n@endpoint GET /v4/domains\n@desc Gets a list of domains registered for the authenticating user.\n@optional {teamId: str # A team id in case you want to act on behalf of a team}\n@returns(200) {domains: [map]} # OK\n\n@endpoint GET /v4/domains/{name}\n@desc Get a domain for the authenticated user by name\n@required {name: str # A team id in case you want to act on behalf of a team}\n@optional {teamId: str # A team id in case you want to act on behalf of a team}\n@returns(200) {domain: map{boughtAt: int?, cdnEnabled: bool, createdAt: int?, expiresAt: int?, id: str, intendedNameservers: [str], name: str, nameservers: [str], nsVerifiedAt: int?, orderedAt: int?, serviceType: str, transferredAt: int?, txtVerifiedAt: int?, verificationRecord: str, verified: bool, suffix: bool, aliases: [map], certs: [map], creator: map{customerId: str, email: str, id: str, username: str, isDomainReseller: bool}}} # OK\n@errors {404: Not Found}\n\n@endgroup\n\n@end\n"}}