# Need help with Post command

**URL:** <https://community.postman.com/t/need-help-with-post-command/73024>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [December 23, 2024, 2:37pm UTC](https://community.postman.com/t/need-help-with-post-command/73024 "2024-12-23T14:37:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slescure](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@slescure](https://community.postman.com/u/slescure)\
**Post date:** [December 23, 2024, 2:37pm UTC](https://community.postman.com/t/need-help-with-post-command/73024/1 "2024-12-23T14:37:39Z")

</div>

Hi - I need to write a java program to connect to a USPS REST API. I’m not a JAVA programmer, nor have I used Postman, so forgive my cluelessness.

Below is the USPS documentation for how to call the API.

\*The _ **epf/login** _ function call is used to log into EPF system and retrieve the required keys for all future web service calls…

_ **INPUT:** Call the URL via POST method with JSON object serialized and set parameter._

_obj={_

_“ **login** ”:“[epf login required]”,_

“ **pword** ”:“[epf password required]”

My idea is to use Postman to connect, then I can cut and paste the generated JAVA code.

I’m not sure what “with JSON object serialized and set parameter”:

_call the URL via POST method with JSON object serialized and set parameter._

In Postman, I’m trying to pass the ID and password via “Params”. I don’t even know if that’s right. When I run it, the error is “not authorized”. I know the ID/password are correct, since I can login to their web site with those credentials.(Although there could be some other permissions problem).

Anybody have a thought?

thanks

---

<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:** [March 23, 2025, 2:37pm UTC](https://community.postman.com/t/need-help-with-post-command/73024/2 "2025-03-23T14:37:46Z")

</div>

Closed on March 23, 2025, 2:37pm UTC

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