{"files":{"SKILL.md":"---\nname: postmark-account-level-api\ndescription: \"Postmark Account-level API skill. Use when working with Postmark Account-level for servers, senders, domains. Covers 23 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Postmark Account-level API\nAPI version: 0.9.0\n\n## Auth\nNo authentication required.\n\n## Base URL\nhttps://api.postmarkapp.com/\n\n## Setup\n1. No auth setup needed\n2. GET /servers -- verify access\n3. POST /servers -- create first servers\n\n## Endpoints\n\n23 endpoints across 4 groups. See references/api-spec.lap for full details.\n\n### servers\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /servers/{serverid} | Get a Server |\n| PUT | /servers/{serverid} | Edit a Server |\n| DELETE | /servers/{serverid} | Delete a Server |\n| GET | /servers | List servers |\n| POST | /servers | Create a Server |\n\n### senders\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /senders | List Sender Signatures |\n| POST | /senders | Create a Sender Signature |\n| GET | /senders/{signatureid} | Get a Sender Signature |\n| PUT | /senders/{signatureid} | Update a Sender Signature |\n| DELETE | /senders/{signatureid} | Delete a Sender Signature |\n| POST | /senders/{signatureid}/resend | Resend Signature Confirmation Email |\n| POST | /senders/{signatureid}/verifyspf | Request DNS Verification for SPF |\n| POST | /senders/{signatureid}/requestnewdkim | Request a new DKIM Key |\n\n### domains\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /domains | List Domains |\n| POST | /domains | Create a Domain |\n| GET | /domains/{domainid} | Get a Domain |\n| PUT | /domains/{domainid} | Update a Domain |\n| DELETE | /domains/{domainid} | Delete a Domain |\n| PUT | /domains/{domainid}/verifydkim | Request DNS Verification for DKIM |\n| PUT | /domains/{domainid}/verifyreturnpath | Request DNS Verification for Return-Path |\n| POST | /domains/{domainid}/verifyspf | Request DNS Verification for SPF |\n| POST | /domains/{domainid}/rotatedkim | Rotate DKIM Key |\n\n### templates\n| Method | Path | Description |\n|--------|------|-------------|\n| PUT | /templates/push | Push templates from one server to another |\n\n## Common Questions\n\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Get server details?\" -> GET /servers/{serverid}\n- \"Update a server?\" -> PUT /servers/{serverid}\n- \"Delete a server?\" -> DELETE /servers/{serverid}\n- \"List all servers?\" -> GET /servers\n- \"Create a server?\" -> POST /servers\n- \"List all senders?\" -> GET /senders\n- \"Create a sender?\" -> POST /senders\n- \"Get sender details?\" -> GET /senders/{signatureid}\n- \"Update a sender?\" -> PUT /senders/{signatureid}\n- \"Delete a sender?\" -> DELETE /senders/{signatureid}\n- \"Create a resend?\" -> POST /senders/{signatureid}/resend\n- \"Create a verifyspf?\" -> POST /senders/{signatureid}/verifyspf\n- \"Create a requestnewdkim?\" -> POST /senders/{signatureid}/requestnewdkim\n- \"List all domains?\" -> GET /domains\n- \"Create a domain?\" -> POST /domains\n- \"Get domain details?\" -> GET /domains/{domainid}\n- \"Update a domain?\" -> PUT /domains/{domainid}\n- \"Delete a domain?\" -> DELETE /domains/{domainid}\n- \"Create a verifyspf?\" -> POST /domains/{domainid}/verifyspf\n- \"Create a rotatedkim?\" -> POST /domains/{domainid}/rotatedkim\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- List endpoints may support pagination; check for limit, offset, or cursor params\n- Create/update endpoints typically return the created/updated object\n\n## CLI\n\n```bash\n# Update this spec to the latest version\nnpx @lap-platform/lapsh get postmark-account-level-api -o references/api-spec.lap\n\n# Search for related APIs\nnpx @lap-platform/lapsh search postmark-account-level-api\n```\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 Postmark Account-level API\n@base https://api.postmarkapp.com/\n@version 0.9.0\n@common_fields {X-Postmark-Account-Token: any # The token associated with the Account on which this request will operate.}\n@endpoints 23\n@hint download_for_search\n@toc servers(5), senders(8), domains(9), templates(1)\n\n@group servers\n@endpoint GET /servers/{serverid}\n@desc Get a Server\n@required {serverid: any # The ID of the Server to get.}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint PUT /servers/{serverid}\n@desc Edit a Server\n@required {serverid: any # The ID of the Server to update.}\n@optional {body: any}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint DELETE /servers/{serverid}\n@desc Delete a Server\n@required {serverid: any # The ID of the Server that should be deleted.}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint GET /servers\n@desc List servers\n@required {count: any # Number of servers to return per request., offset: any # Number of servers to skip.}\n@optional {name: any # Filter by a specific server name}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint POST /servers\n@desc Create a Server\n@optional {body: any}\n@returns(200) OK\n@errors {422, 500}\n\n@endgroup\n\n@group senders\n@endpoint GET /senders\n@desc List Sender Signatures\n@required {count: any # Number of records to return per request. Max 500., offset: any # Number of records to skip}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint POST /senders\n@desc Create a Sender Signature\n@optional {body: any}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint GET /senders/{signatureid}\n@desc Get a Sender Signature\n@required {signatureid: any # The ID for the Sender Signature that should be retrieved.}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint PUT /senders/{signatureid}\n@desc Update a Sender Signature\n@required {signatureid: any # The ID for the Sender Signature that should be modified by the request.}\n@optional {body: any}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint DELETE /senders/{signatureid}\n@desc Delete a Sender Signature\n@required {signatureid: any # The ID for the Sender Signature that should be deleted by the request.}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint POST /senders/{signatureid}/resend\n@desc Resend Signature Confirmation Email\n@required {signatureid: any # The ID for the Sender Signature that should have its confirmation email resent.}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint POST /senders/{signatureid}/verifyspf\n@desc Request DNS Verification for SPF\n@required {signatureid: any # The ID for the Sender Signature for which SPF DNS records should be verified.}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint POST /senders/{signatureid}/requestnewdkim\n@desc Request a new DKIM Key\n@required {signatureid: any # The ID for the Sender Signature for which a new DKIM Key should be generated.}\n@returns(200) OK\n@errors {422, 500}\n\n@endgroup\n\n@group domains\n@endpoint GET /domains\n@desc List Domains\n@required {count: any # Number of records to return per request. Max 500., offset: any # Number of records to skip}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint POST /domains\n@desc Create a Domain\n@optional {body: any}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint GET /domains/{domainid}\n@desc Get a Domain\n@required {domainid: any # The ID for the Domain that should be retrieved.}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint PUT /domains/{domainid}\n@desc Update a Domain\n@required {domainid: any # The ID for the Domain that should be modified by the request.}\n@optional {body: any}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint DELETE /domains/{domainid}\n@desc Delete a Domain\n@required {domainid: any # The ID for the Domain that should be deleted by the request.}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint PUT /domains/{domainid}/verifydkim\n@desc Request DNS Verification for DKIM\n@required {domainid: any # The ID for the Domain for which DKIM DNS records should be verified.}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint PUT /domains/{domainid}/verifyreturnpath\n@desc Request DNS Verification for Return-Path\n@required {domainid: any # The ID for the Domain for which Return-Path DNS records should be verified.}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint POST /domains/{domainid}/verifyspf\n@desc Request DNS Verification for SPF\n@required {domainid: any # The ID for the Domain for which SPF DNS records should be verified.}\n@returns(200) OK\n@errors {422, 500}\n\n@endpoint POST /domains/{domainid}/rotatedkim\n@desc Rotate DKIM Key\n@required {domainid: any # The ID for the Sender Signature for which a new DKIM Key should be generated.}\n@returns(200) OK\n@errors {422, 500}\n\n@endgroup\n\n@group templates\n@endpoint PUT /templates/push\n@desc Push templates from one server to another\n@required {body: any}\n@returns(200) ok\n@errors {422, 500}\n\n@endgroup\n\n@end\n"}}