Boundary api questions

I tested the following two APIs to get targets information.

In case 1, a token error occurs.
In case 2, a parameter violation error occurs.

I have two questions.

  1. How do I enter the Token parameter?
  2. How can I get target information using recursive?

case 1
curl -X GET “

case 1
curl -X GET “


Hello and thanks for your interest in Boundary. While it might be easier to use Boundary CLI to access these endpoints, you can still hit the API directly. Here are some tips:

  1. If you have a token, add it to the Authorization header of each request as a Bearer token.
  2. Even recursive requests require a scope from which to start. If you want to retrieve all resources of a given type recursively, try scope_id=global.

Hope this helps. Let me know if you have any other questions!

Hi! @randallmorey

Thanks for the reply

I solved it, but I have two questions.
And I know the CLI is easy, but I want to write automated scripts and provide them to users.

  1. I am trying to login to OIDC through the API. But I didn’t understand the PARAMETERS value.
    I have used the Authenticate API, but I am getting an error. What do I need to fix?
    curl -X POST “”
    {“kind”:“InvalidArgument”, “message”:“Invalid fields provided in request.”, “details”:{“request_fields”:[{“name”:“command”, “description”:" Invalid command authentication method type."}]}}%

  2. Can’t I use “boundary connect ssh” using the API?