# Auth0 Call back URL

**URL:** <https://community.auth0.com/t/auth0-call-back-url/117115>\
**Category:** Get Help\
**Tags:** application, sso\
**Created:** [September 25, 2023, 8:53pm UTC](https://community.auth0.com/t/auth0-call-back-url/117115 "2023-09-25T20:53:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![srajendran](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@srajendran](https://community.auth0.com/u/srajendran)\
**Post date:** [September 25, 2023, 8:53pm UTC](https://community.auth0.com/t/auth0-call-back-url/117115/1 "2023-09-25T20:53:40Z")

</div>

Hi,  
I would like to know if you have a CLI command to update a callback URL for an application in Auth0. When i spin up an application, I wanted to automatically add the url of the environment to callback URL. Is it possible?  
regards,  
Suguna

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [September 25, 2023, 9:43pm UTC](https://community.auth0.com/t/auth0-call-back-url/117115/3 "2023-09-25T21:43:21Z")

</div>

Hi @srajendran,

Yes, this is possible.

Using the Auth0 CLI, you can call the `auth0 apps update <app_id> --callbacks https://yourApp/callback` command to update your callback URL.

Reference: [auth0 apps update | Auth0 CLI](https://auth0.github.io/auth0-cli/auth0_apps_update.html)

Please let me know if you have any questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![srajendran](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@srajendran](https://community.auth0.com/u/srajendran)\
**Post date:** [September 25, 2023, 10:37pm UTC](https://community.auth0.com/t/auth0-call-back-url/117115/4 "2023-09-25T22:37:46Z")

</div>

> [@rueben.tiow](#):
>
> update

Hi,  
Sorry,Can this be done using API call?

---

<div class="post-metadata">

**Author:** ![srajendran](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@srajendran](https://community.auth0.com/u/srajendran)\
**Post date:** [September 26, 2023, 2:05pm UTC](https://community.auth0.com/t/auth0-call-back-url/117115/5 "2023-09-26T14:05:48Z")

</div>

And I would like to know if the values can be appended to the callback URl through API call.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [September 27, 2023, 5:08pm UTC](https://community.auth0.com/t/auth0-call-back-url/117115/6 "2023-09-27T17:08:40Z")

</div>

Hi @srajendran,

You can use the Management API to update the Callback URL.

The CLI command would be:

```auto
curl -L -X PATCH 'https://YOUR_DOMAIN.REGION.auth0.com/api/v2/clients/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access_token}' \
-d '{"callbacks":["string"]}'

```

Reference: [Auth0 Management API v2](https://auth0.com/docs/api/management/v2/clients/patch-clients-by-id)

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![srajendran](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@srajendran](https://community.auth0.com/u/srajendran)\
**Post date:** [October 2, 2023, 3:01pm UTC](https://community.auth0.com/t/auth0-call-back-url/117115/7 "2023-10-02T15:01:40Z")

</div>

curl -L -X GET ‘https://YOUR\_DOMAIN.REGION.auth0.com/api/v2/clients/:id’   
-H ‘Content-Type: application/json’   
-H ‘Accept: application/json’   
-H ‘Authorization: Bearer {access\_token}’   
-d’{“client\_secret”:“SECRET”}’  
Can we use the above CLI command to Get the the Callback URLs of the client?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [October 2, 2023, 4:25pm UTC](https://community.auth0.com/t/auth0-call-back-url/117115/8 "2023-10-02T16:25:41Z")

</div>

Hi @srajendran,

Have you given it a try?

You should call the [Management API’s Get a client endpoint](https://auth0.com/docs/api/management/v2/clients/get-clients-by-id) and include the callbacks as a query field if you need to get the callback URL of your application.

```auto
curl -L 'https://onboarding-tiow.us.auth0.com/api/v2/clients/:id?fields=callbacks' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer auth0_token'

```

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![srajendran](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@srajendran](https://community.auth0.com/u/srajendran)\
**Post date:** [October 3, 2023, 7:02pm UTC](https://community.auth0.com/t/auth0-call-back-url/117115/9 "2023-10-03T19:02:47Z")

</div>

Sorry Ruben,  
When i try to update using CURL command  
curl -L -X PATCH ‘[https://foodlogiq-dev.auth0.com/api/v2/clients/Y4Q6mxAaTvh4LV3trEej54WoHrIsosJo](https://foodlogiq-dev.auth0.com/api/v2/clients/Y4Q6mxAaTvh4LV3trEej54WoHrIsosJo)’ \

-H ‘Accept: application/json’ \

-H ‘Authorization: Bearer token’ \

-d ‘{“callbacks”:[“[https://pii-2239-env.foodlogiq.io/v3/auth/callback/https:%2F%2Fpi-2239-env.foodlogiq.com%2Fauth%2Fcallback%3Fnext=%2F,](https://pii-2239-env.foodlogiq.io/v3/auth/callback/https:%2F%2Fpi-2239-env.foodlogiq.com%2Fauth%2Fcallback%3Fnext=%2F,)”]}’  
I get the error below:  
{“statusCode”:400,“error”:“Bad Request”,“message”:“Payload validation error: ‘Additional properties not allowed: {"callbacks":["[https://pii-2239-env.foodlogiq.io/v3/auth/callback/https://pi-2239-env.foodlogiq.com/auth/callback?next](https://pii-2239-env.foodlogiq.io/v3/auth/callback/https://pi-2239-env.foodlogiq.com/auth/callback?next)’.”,“errorCode”:“invalid\_body”} **%**

What am i doing wrong?

---

<div class="post-metadata">

**Author:** ![srajendran](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@srajendran](https://community.auth0.com/u/srajendran)\
**Post date:** [October 3, 2023, 9:55pm UTC](https://community.auth0.com/t/auth0-call-back-url/117115/10 "2023-10-03T21:55:41Z")

</div>

Hi,  
i got this sorted. Should i use Authorization:Bearer or client secret to update Callback URL?  
when i use on;ly client secret, it says missing authentication.Should i use AUthorization bearer and client id or both?  
curl -L -X PATCH ‘[https://foodlogiq-dev.auth0.com/api/v2/clients/Y4Q6mxAaTvh4LV3trEej54WoHrIsosJo](https://foodlogiq-dev.auth0.com/api/v2/clients/Y4Q6mxAaTvh4LV3trEej54WoHrIsosJo)’ \

-H ‘Content-Type: application/json’ \

-H ‘Accept: application/json’ \

-d’{“client\_secret”:“secret”,“callbacks”:[“[https://pii-2239-env.foodlogiq.io/v3/auth/callback/https:%2F%2Fpi-2239-env.foodlogiq.com%2Fauth%2Fcallback%3Fnext=%2F,](https://pii-2239-env.foodlogiq.io/v3/auth/callback/https:%2F%2Fpi-2239-env.foodlogiq.com%2Fauth%2Fcallback%3Fnext=%2F,)”]}’

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 17, 2023, 9:56pm UTC](https://community.auth0.com/t/auth0-call-back-url/117115/11 "2023-10-17T21:56:01Z")

</div>

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