# How to get an AuthId token for pCloud

**URL:** <https://forum.duplicati.com/t/how-to-get-an-authid-token-for-pcloud/20604>\
**Category:** How-To\
**Created:** [April 30, 2025, 3:32pm UTC](https://forum.duplicati.com/t/how-to-get-an-authid-token-for-pcloud/20604 "2025-04-30T15:32:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![obones](https://forum.duplicati.com/user_avatar/forum.duplicati.com/obones/32/1627_2.png) [@obones](https://forum.duplicati.com/u/obones)\
**Post date:** [April 30, 2025, 3:32pm UTC](https://forum.duplicati.com/t/how-to-get-an-authid-token-for-pcloud/20604/1 "2025-04-30T15:32:07Z")

</div>

Hello,

I see that pCloud is now supported by the canari version that I’m using, so I tried doing just that.  
Looking at the documentation, I went to [https://duplicati-oauth-handler.appspot.com](https://duplicati-oauth-handler.appspot.com) but could not see a button for pCloud on the default page.  
Nevertheless, I tried my usual backup command line with a pcloud:// destination but it complained with this error message:

```plaintext
ErrorID: MissingAuthID
You need an AuthID to use this destination. You can get it from: https://duplicati-oauth-handler.appspot.com?type=pcloud

```

I thus visited that URL which is the same as before but with the type indicated. Sadly, this gives me an empty page, with no button at all:

 ![image](https://forum.duplicati.com/uploads/default/original/2X/2/2d8006f8bce8a0612755f03edaf3c336b7502cc9.png)

I’ve seen other users report that they are using duplicati with pCloud just fine, but they don’t say how they got an AuthId.  
What have I missed?

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [April 30, 2025, 5:18pm UTC](https://forum.duplicati.com/t/how-to-get-an-authid-token-for-pcloud/20604/2 "2025-04-30T17:18:23Z")

</div>

> [@obones](#):
>
> they don’t say how they got an AuthId.

If you use Duplicati GUI, try the `AuthID` button:

 ![image](https://forum.duplicati.com/uploads/default/original/2X/0/0a4318d4b02d69b46de01bd16742d312d99aec45.png)

To get into details which the dev might want to comment on (e.g. for release 2.2 plans):

> <https://github.com/duplicati/duplicati/pull/5702>
>
> Changed the OAuth server to the new configured instance.

is sending you to new C# OAuth server at `https://oauth-service.duplicati.com/`

At that time, Python 2.7 OAuth server at documented location could not be upgraded.

[Upgrading GAE OAuth Server](https://forum.duplicati.com/t/upgrading-gae-oauth-server/19832) fixed this in January, but it still doesn’t know of pCloud.

Having Canary test pCloud on [test OAuth server](https://forum.duplicati.com/t/replacing-the-oauth-service/17447) seems OK, but what’s coming later?

I’m kind of fuzzy on channel use before Stable, but assume prereleases will come out.

Right now, the C# MissingAuthID aims wrong, as it doesn’t know the GUI code doings.

Even without that wrinkle, arguably a user could set the OAuth server choice in option:

```plaintext
  --oauth-url (String): Alternate OAuth URL
    Duplicati uses an external server to support the OAuth authentication flow. If you have set up your own Duplicati OAuth server, you can supply the refresh URL.
    * default value: https://duplicati-oauth-handler.appspot.com/refresh

```

and I don’t know if that’s taken into account in the message (haven’t tested the option).

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [April 30, 2025, 6:11pm UTC](https://forum.duplicati.com/t/how-to-get-an-authid-token-for-pcloud/20604/3 "2025-04-30T18:11:29Z")

</div>

> [@obones](#):
>
> Nevertheless, I tried my usual backup command line with a pcloud:// destination but it complained with this error message:
> 
> ```plaintext
> ErrorID: MissingAuthID
> You need an AuthID to use this destination. You can get it from: https://duplicati-oauth-handler.appspot.com?type=pcloud
> 
> ```

I see, the commandline is using the general Url, which does not work for pCloud.

We are working on migrating away from that solution, so that service has not been updated with pCloud.

Instead, you need to use this url:

```plaintext
https://oauth-service.duplicati.com?type=pcloud

```

If you use the UI as @ts678 suggest, this has been updated to point to the new service for pCloud.

The reason why pCloud support was not backported is that it uses a special flow, where you get the token after authentication, and do not need to repeatedly refresh the token as regular OAuth based providers do.

You do not need to set the alternate OAuth url, because pCloud will not contact the server if you have the AuthId.

---

<div class="post-metadata">

**Author:** ![obones](https://forum.duplicati.com/user_avatar/forum.duplicati.com/obones/32/1627_2.png) [@obones](https://forum.duplicati.com/u/obones)\
**Post date:** [April 30, 2025, 9:18pm UTC](https://forum.duplicati.com/t/how-to-get-an-authid-token-for-pcloud/20604/4 "2025-04-30T21:18:45Z")

</div>

I’m almost always only using the CLI as it offers me better control on what’s done.

Thanks for pointing me to the alternate URL, it worked just fine in getting the AuthId.

Thing is, I then received the following error message:

```plaintext
Invalid server specified, must be either api.pcloud.com or eapi.pcloud.com for European hosting

```

Looking at the [source code](https://github.com/duplicati/duplicati/blob/bb2e97e80cf0ae7c4b599330cb282f26d11cf6f8/Duplicati/Library/Backend/pCloud/pCloudBackend.cs#L137) I found out that the [documentation](https://docs.duplicati.com/backup-destinations/provider-specific-destinations/pcloud-destination) missed the “host” part and so after changing my URL to `pcloud://eapi.pcloud.com/folder?authid=abcdef` it is now working just fine.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [May 1, 2025, 8:23am UTC](https://forum.duplicati.com/t/how-to-get-an-authid-token-for-pcloud/20604/5 "2025-05-01T08:23:49Z")

</div>

> [@obones](#):
>
> I’m almost always only using the CLI as it offers me better control on what’s done.
> 
> Thanks for pointing me to the alternate URL, it worked just fine in getting the AuthId.

Yes, and it should obviously show the correct url in either case. I have [fixed this in source](https://github.com/duplicati/duplicati/pull/6223).

> [@obones](#):
>
> Looking at the [source code](https://github.com/duplicati/duplicati/blob/bb2e97e80cf0ae7c4b599330cb282f26d11cf6f8/Duplicati/Library/Backend/pCloud/pCloudBackend.cs#L137) I found out that the [documentation](https://docs.duplicati.com/backup-destinations/provider-specific-destinations/pcloud-destination) missed the “host” part

Thanks for pointing that out. I have updated the documentation to mention the host part.
