# How to get a service token with api/curl

**URL:** <https://discuss.elastic.co/t/how-to-get-a-service-token-with-api-curl/302929>\
**Category:** Elasticsearch\
**Created:** [April 21, 2022, 3:00pm UTC](https://discuss.elastic.co/t/how-to-get-a-service-token-with-api-curl/302929 "2022-04-21T15:00:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrielfsousa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabrielfsousa/32/116946_2.png) [@gabrielfsousa](https://discuss.elastic.co/u/gabrielfsousa)\
**Post date:** [April 21, 2022, 3:00pm UTC](https://discuss.elastic.co/t/how-to-get-a-service-token-with-api-curl/302929/1 "2022-04-21T15:00:43Z")

</div>

how to get a service token with api/curl ?

i know how to create.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 19, 2022, 3:01pm UTC](https://discuss.elastic.co/t/how-to-get-a-service-token-with-api-curl/302929/2 "2022-05-19T15:01:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
