# API Key From Profile Yields - This API key does not exist (or has been revoked)

**URL:** <https://discuss.roboflow.com/t/api-key-from-profile-yields-this-api-key-does-not-exist-or-has-been-revoked/2395>\
**Category:** 🤝  Community Help\
**Created:** [June 8, 2023, 6:37pm UTC](https://discuss.roboflow.com/t/api-key-from-profile-yields-this-api-key-does-not-exist-or-has-been-revoked/2395 "2023-06-08T18:37:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kPOWz](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/kpowz/32/2109_2.png) [@kPOWz](https://discuss.roboflow.com/u/kPOWz)\
**Post date:** [June 8, 2023, 6:37pm UTC](https://discuss.roboflow.com/t/api-key-from-profile-yields-this-api-key-does-not-exist-or-has-been-revoked/2395/1 "2023-06-08T18:37:22Z")

</div>

Please share the following so we may better assist you:

1. Project type (Object detection, Classification, Polygon, etc.)  
Object detection
2. The operating system & browser you are using and their versions  
REST API call any way : curl, chrome, firefox, postman. Just like this example : [https://docs.roboflow.com/rest-api/workspace](https://docs.roboflow.com/rest-api/workspace)
3. The screenshot of the error being triggered in your browser’s developer tools/console. Please copy/paste the url below to watch how to pull up your devtools  
This is a REST API call attempt : [https://api.roboflow.com/roboflow?api\_key=$ROBOFLOW\_API\_KEY](https://api.roboflow.com/roboflow?api_key=$ROBOFLOW_API_KEY)  
{  
“error”: {  
“message”: “This API key does not exist (or has been revoked).”,  
“type”: “OAuthException”,  
“hint”: “You may retrieve your API key via the Roboflow Dashboard. Go to Account \> Roboflow Keys to retrieve yours.”,  
“key”: “rf\_ip7…M23”  
}  
}

The API Key is being copied directly from my account profile/dashboard & I refreshed a few times to make sure wasn’t expiration issue.

---

<div class="post-metadata">

**Author:** ![Mohamed](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/mohamed/32/62_2.png) [@Mohamed](https://discuss.roboflow.com/u/Mohamed)\
**Post date:** [June 9, 2023, 3:44am UTC](https://discuss.roboflow.com/t/api-key-from-profile-yields-this-api-key-does-not-exist-or-has-been-revoked/2395/2 "2023-06-09T03:44:40Z")

</div>

@kPOWz it appears you copy/pasted the **Public** API Key.

To deploy your model, or use the API with workspace and/or project, version, model access, use the _Private_ API Key, instead:

- **[Obtaining Your Private API Key - Roboflow REST API docs](https://docs.roboflow.com/rest-api#obtaining-your-api-key)** \*\*\*\*

> **[Model Deployment Requirements](https://docs.roboflow.com/roboflow-workspaces/model-deployment-requirements)**
>
> Notes on the information and settings required to deploy any model trained or hosted on Roboflow and/or Roboflow Universe.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/9/948da966445c60117ff54a18fd70179618c621aa.png)

The Public API Key is if you are doing something like deploying a model to a web browser or phone with `roboflow.js`, and want other users to be able to access the model, without being able to utilize/mess with your project and workspace.

- [Web Browser (On Device) - Roboflow](https://docs.roboflow.com/inference/web-browser)

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/c/cfc5fc97d13f0096ab27c360feda0b3948942fa1.png)
