# Create API token and service account

**URL:** <https://devforum.okta.com/t/create-api-token-and-service-account/551>\
**Category:** API\
**Created:** [October 11, 2017, 12:14am UTC](https://devforum.okta.com/t/create-api-token-and-service-account/551 "2017-10-11T00:14:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nacasuy](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/nacasuy/32/159_2.png) [@nacasuy](https://devforum.okta.com/u/nacasuy)\
**Post date:** [October 11, 2017, 12:14am UTC](https://devforum.okta.com/t/create-api-token-and-service-account/551/1 "2017-10-11T00:14:22Z")

</div>

Is it possible to use an API token for an application that will use some of the endpoints my API expose?  
I did not find much on API Token documentation. Is this intended for this use? If so, assuming that the application has that api token then when sending to the API what the API should do in order to either validate that token or call to another okta endpoint to make sure the token is valid?

Thanks

---

<div class="post-metadata">

**Author:** ![vijet](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/vijet/32/245_2.png) [@vijet](https://devforum.okta.com/u/vijet)\
**Post date:** [October 11, 2017, 10:51pm UTC](https://devforum.okta.com/t/create-api-token-and-service-account/551/2 "2017-10-11T22:51:00Z")

</div>

You can’t use the API Token to protect your endpoints.  
Okta API tokens are used to authenticate requests to the “Okta API” just like HTTP cookies authenticate requests to the Okta Application with your browser.

Reference - [https://support.okta.com/help/Documentation/Knowledge\_Article/API-54325410](https://support.okta.com/help/Documentation/Knowledge_Article/API-54325410)

If you need to protect your own API endpoints, you should use API Access Management - [https://developer.okta.com/use\_cases/api\_access\_management/](https://developer.okta.com/use_cases/api_access_management/)

---

<div class="post-metadata">

**Author:** ![nacasuy](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/nacasuy/32/159_2.png) [@nacasuy](https://devforum.okta.com/u/nacasuy)\
**Post date:** [October 13, 2017, 6:30pm UTC](https://devforum.okta.com/t/create-api-token-and-service-account/551/3 "2017-10-13T18:30:39Z")

</div>

Thanks for your answer.

---

<div class="post-metadata">

**Author:** ![svr](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@svr](https://devforum.okta.com/u/svr)\
**Post date:** [February 24, 2021, 8:34pm UTC](https://devforum.okta.com/t/create-api-token-and-service-account/551/4 "2021-02-24T20:34:09Z")

</div>

Experts,

I am newbie to okta. Trying to setup a ‘service user’ account with required privileges for create user API.

The application team will be using JAVA API to create users in okta tentant.

Could you please help me with any URL / steps to create service user.

Thanks!  
sri

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 24, 2021, 11:47pm UTC](https://devforum.okta.com/t/create-api-token-and-service-account/551/5 "2021-02-24T23:47:42Z")

</div>

Can you create a new post and provide some more details about your use case and what you’re working on so we can see what your options are? Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 25, 2021, 11:48pm UTC](https://devforum.okta.com/t/create-api-token-and-service-account/551/6 "2021-02-25T23:48:07Z")

</div>

Closed on February 25, 2021, 11:48pm UTC

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