# Retrieve Test Suites https://api-docs.lumar.io/docs/protect/test-suites/retrieve-test-suites ## Retrieve test suites in an account The following query retrieves the last 100 test suites for a given account: ```graphql query GetAccountTestSuites($accountId: ObjectID!) { node(id: $accountId) { ... on Account { testSuites(last: 100) { nodes { id name } } } } } ``` ## Retrieve test suites in a given account The following query searches for a test suite in a given account using the test suite name: ```graphql query SearchAccountTestSuites($accountId: ObjectID!, $nameContains: String) { node(id: $accountId) { ... on Account { testSuites(first: 5, filter: { name: { contains: $nameContains } }) { nodes { id name } } } } } ```