diff --git a/specs/contacts.openapi.yml b/specs/contacts.openapi.yml index 7ccfacf..00ece4b 100644 --- a/specs/contacts.openapi.yml +++ b/specs/contacts.openapi.yml @@ -1230,12 +1230,24 @@ paths: summary: Get all Contact Lists tags: - Contact Lists + parameters: + - schema: + type: string + example: news + in: query + name: search + required: false + description: Filter contact lists by name (case-insensitive prefix match). x-codeSamples: - lang: shell label: 'cURL' source: | curl -X GET https://mailtrap.io/api/contacts/lists \ -H 'Authorization: Bearer YOUR_API_TOKEN' + + # Filter lists by name (case-insensitive prefix match) + curl -X GET 'https://mailtrap.io/api/contacts/lists?search=news' \ + -H 'Authorization: Bearer YOUR_API_TOKEN' - lang: javascript label: Node.js source: |