---
title: "Store an encrypted workflow credential"
method: POST
path: "/workflow-connections"
tags: ["Workflows"]
---

# Store an encrypted workflow credential

`POST /workflow-connections`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/workflow-connections`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Query parameters

- `workspace_id` string, required

## Request body

- WorkflowCredentialRequest
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `header_name` string
  - `host` string
  - `kind` 'github' | 'bearer' | 'header' | 'basic'
  - `name` string, required
  - `token` string, required

## Response `200`

OK

- WorkflowConnection
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `created_at` string, date-time, required
  - `header_name` string
  - `host` string
  - `id` string, required
  - `kind` string, required
  - `name` string, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Entity
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
