https://linen.dev logo
How to inject cloudId into composio.tool.execute?
# 🖥│support-forum
t
I'm using the composio/client library and use the execute tool like this:
Copy code
ts
  const result = await composio.tools.execute(params.tool_slug, {
        arguments: params.arguments,
        user_id: userId,
        version: 'latest',
        custom_auth_params: {
          parameters: [
            {
              in: 'header',
              name: 'Authorization',
              value: authHeader,
            },
          ],
        },
      })
where do i inject the atlasian cloudId?
u
Hey @TheDiamondOr, you can pass the
base_url
in custom auth params:
Copy code
custom_auth_params: {
      base_url: "https://api.atlassian.com/ex/jira/{cloud-id}",
      parameters: [
        {
          in: "header",
          name: "Authorization",
          value: "Bearer XXX",
        },
      ],
    }
t
Thanks!