---
title: "Stores credentials"
method: POST
path: "/v1/credentials"
tags: ["Credentials"]
---

# Stores credentials

`POST /v1/credentials`

Encrypts and stores credentials for an origin

## Request body

- CredentialCreate
  - `namespace` string — The namespace the credential is stored against. Defaults to "default".
  - `origin` string — Website origin the credential is for
  - `label` string — Label for the credential
  - `value` object, required — Value for the credential

## Response `201`

Default Response

- CredentialMetadata
  - `namespace` string — The namespace the credential is stored against. Defaults to "default".
  - `origin` string — Website origin the credential is for
  - `label` string — Label for the credential
  - `createdAt` string, date-time, required — Date and time the credential was created
  - `updatedAt` string, date-time, required — Date and time the credential was last updated

## Other responses

- `400` — Default Response
- `500` — Default Response

## Changes

- **2025-05-26** `c30148e5d3a9` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/steel-dev/apis/steel-api/changes/v1/credentials/post.md)

---

[API](https://skmtc.dev/steel-dev/apis/steel-api.md) · [All operations](https://skmtc.dev/steel-dev/apis/steel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/steel-dev/steel-api/revisions/d5a9cdf80ea2/schema)
