# Python API calls error

**URL:** <https://community.penpot.app/t/python-api-calls-error/2658>\
**Category:** Installation\
**Created:** [February 26, 2023, 3:16am UTC](https://community.penpot.app/t/python-api-calls-error/2658 "2023-02-26T03:16:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fipa](https://avatars.discourse-cdn.com/v4/letter/f/9e8a1a/32.png) [@Fipa](https://community.penpot.app/u/Fipa)\
**Post date:** [February 26, 2023, 3:16am UTC](https://community.penpot.app/t/python-api-calls-error/2658/1 "2023-02-26T03:16:05Z")

</div>

I’m a game and XR developer and since the release of Penpot and seeing that some Figma to Unity and Unreal plugins exist in the wild (some unfinished), I had an idea to create the same for Penpot. An Unreal editor python plugin to connect Penpot and Unreal Engine.

I’ve already setup a local docker environment for development on Windows and was able to read the logs to figure out what API was called from the frontend to get information from the backend.

**Problem:**  
I’d like to get some information on how to get an authentication key to access user’s data to select files to export? I’m assuming for penpot auth it’s using **`api/rpc/command/login-with-password`** and getting the **`"~:id"`**? But after that, calling some endpoint with the required **`profile-id`** , I get 500 - Internal Server Error (top) or 401 - Unauthorized (bottom) with

 ![1124-VSCodium_27-02-2023](https://europe1.discourse-cdn.com/flex017/uploads/penpot/original/2X/2/23f73c1a6e48a529b74c97a9bbc3b87f8e003b79.jpeg)

I’m mostly stumped this one, since I don’t work with web requests and I haven’t worked with authentication. How would I implement acquiring the authentication data from other authentication providers if the user doesn’t use penpot authentication?
