---
title: "call"
method: POST
path: "/service/{service}/call/{path}"
tags: ["services"]
---

# call

`POST /service/{service}/call/{path}`

### Invoke a service endpoint

Call executes a `POST` to the `path` endpoint of `service`.
The request body is passed through to the target endpoint.
The result of the call is the result of invoking the target service endpoint
unless the `async` or `promise` pragma header is specified.

## Path parameters

- `service` string, required
- `path` string, required

## Headers

- `Pragma` string

## Response `200`

The response body returned by the invoked endpoint

## Other responses

- `202` — Indicates that a non-blocking call has been accepted for eventual execution
- `500` — A message describing the error
- `503` — A message describing the error
- `default` — An error response returned by the invoked endpoint

## Changes

- **2020-05-13** `3454453183eb` — 1 info
  - added the success response with the status `202`
- **2020-05-12** `67c175bcba5d` — 1 info
  - added the new optional `header` request parameter `Pragma`
- **2020-05-01** `d9f9d9f05f2d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ibm/apis/kar/changes/service/:service/call/:path/post.md)

---

[API](https://skmtc.dev/ibm/apis/kar.md) · [All operations](https://skmtc.dev/ibm/apis/kar/llms.txt) · [OpenAPI document](https://skmtc.dev/ibm/apis/kar/revisions/d601f556f5f6?raw)
