# Creating a callback URL to work with an API

**URL:** <https://community.postman.com/t/creating-a-callback-url-to-work-with-an-api/54864>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [November 21, 2023, 7:01pm UTC](https://community.postman.com/t/creating-a-callback-url-to-work-with-an-api/54864 "2023-11-21T19:01:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mission-physicist-78](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mission-physicist-78](https://community.postman.com/u/mission-physicist-78)\
**Post date:** [November 21, 2023, 7:01pm UTC](https://community.postman.com/t/creating-a-callback-url-to-work-with-an-api/54864/1 "2023-11-21T19:01:35Z")

</div>

I’m just starting with postman as I am connecting to an API that use postman. They have asked I create a callback URL in order to use the api. Could someone help me understand how to go about this please? Thanks in advance

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 21, 2023, 7:11pm UTC](https://community.postman.com/t/creating-a-callback-url-to-work-with-an-api/54864/2 "2023-11-21T19:11:23Z")

</div>

Hey @mission-physicist-78 👋

Welcome to the Postman community! :postman:

Could you provide more details and context, please?

Not sure I understand the ‘connecting to an API that use Postman’ part?

A callback URL, more often than not, refers to some form of Authentication, is that involved here?

---

<div class="post-metadata">

**Author:** ![mission-physicist-78](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mission-physicist-78](https://community.postman.com/u/mission-physicist-78)\
**Post date:** [November 21, 2023, 7:33pm UTC](https://community.postman.com/t/creating-a-callback-url-to-work-with-an-api/54864/3 "2023-11-21T19:33:00Z")

</div>

Hi Danny,

Yes, I’ve been asked for a callback URL in order to use API which uses auth 2.0.

They have said “Our default Postman collection REST API Callback URL” has been registered to my app (which is what I will be using their api with).

Following that they are asking for a callback URL. I came across another post where someone on the same programme was asking about it (but without an answer), so assuming I need to do something on Postman.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 22, 2023, 10:21am UTC](https://community.postman.com/t/creating-a-callback-url-to-work-with-an-api/54864/4 "2023-11-22T10:21:25Z")

</div>

Depending on how that’s been set up, the Auth help at the Collection/Folder/Request level for OAuth 2.0, will show the Callback URL that have been set for your application.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/0/c/0c1b6f8bc995b0359cf7db695740b8b673b0b83b.png)

If you were using the Web version, that would have been slightly different as that cannot be changed/edited:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/0/8/08723aedc18ad12820edba6c222855808bc42239.png)

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/4/a/4a416aa02d7f2e863cc5eb988d36666609650543.png)

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [November 22, 2023, 5:27pm UTC](https://community.postman.com/t/creating-a-callback-url-to-work-with-an-api/54864/5 "2023-11-22T17:27:31Z")

</div>

The Callback URL is the URL that the authentication will redirect to after a success, and its needs to be setup in your OAuth application otherwise the authentication will fail to redirect.

This would usually be your web application, but in this situation Postman is emulating the web application so you will need to add the Postman URL as shown in Danny’s second screenshot as one of the registered Callback URLs for the OAuth application. You can have more than one but Postman needs to be in the list otherwise it won’t know where to send the token (or rather it will be rejected as its not a registered call back address).

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 22, 2023, 5:27pm UTC](https://community.postman.com/t/creating-a-callback-url-to-work-with-an-api/54864/6 "2023-12-22T17:27:52Z")

</div>

Closed on December 22, 2023, 5:27pm UTC

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