get https://{baseUrl}/V1/admin/product/attribute/list
Get list of product attributes. Specify the page size and page number via searchCriteria[page_size] and searchCriteria[currentPage]. You can also provide searchCriteria[] as a param to get an exhaustive list in one attempt if there are a small number of total attributes.
Sample Curl
curl --location --globoff 'https: //mygatewayurl.com/V1/admin/product/attribute/list?searchCriteria[page_size]=1&searchCriteria[current_page]=1' --header 'Content-Type: application/json' --header 'Authorization: Bearer token'