How can test api in postman

i want to test api using postman but i don’t know how add token in postman

Token can be generated from your profile.
Please see how it looks in my system

use the generated token in Postman
Please see below

thank you
now i can send request and get answer using post man and i test get api using spring boot in java successfully but i can’t do post in java spring boot.
can you help me to do that.

static final String URL_POST_CREATE_USER = "";

HttpHeaders postHeaders = new HttpHeaders();

MultiValueMap<String, Object> body = new LinkedMultiValueMap<>();
List aGrps = new ArrayList<>();
body.set(“aUsername”, “moosavi5”);
body.set(“aPass”, “12345678”);
body.set(“aPassConfirm”, “12345678”);
body.set(“aFullname”, “seyyed moosavi”);
body.set(“aEmail”, "");
body.set(“aRole”, “user”);
body.set(“aTitle”, “moosavi nazar”);
body.set(“aGrps”, aGrps);
HttpEntity<MultiValueMap<String, Object>> accountEntity = new HttpEntity<>(body, postHeaders);

RestTemplate restTemplate = new RestTemplate();

ResponseEntity postResponse =, HttpMethod.POST,
accountEntity, String.class);

String postResult = postResponse.getBody();

System.out.println("postResult: " + postResult);

Error is:

org.springframework.web.client.HttpClientErrorException: 400 Bad Request
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(
at org.springframework.web.client.ResponseErrorHandler.handleError(
at org.springframework.web.client.RestTemplate.handleResponse(
at org.springframework.web.client.RestTemplate.doExecute(
at org.springframework.web.client.RestTemplate.execute(
at com.microservice.service.TestRestApi.test(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at java.util.concurrent.Executors$
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(
at java.util.concurrent.ScheduledThreadPoolExecutor$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

I’m not familiar with spring boot. Its outside the scope of this project. As you’ve tested the API with postman you can see that my API is working correctly.

The best advice I can give is figure out what the post body actually looks like when coming from your java client. The 400 status is returned when trudesk is having trouble parsing the request body.

Token can be generated from your profile.
Please see how it looks in my system