---
title: "CreateFileCredential creates a file credential given the id."
method: POST
path: "/v1.1/file_credential"
tags: ["ControlService"]
---

# CreateFileCredential creates a file credential given the id.

`POST /v1.1/file_credential`

If credential exists, overwrites it.

## Request body

- ProtobufControlpbV1CreateFileCredentialRequest
  - `credential` union
    - object, nullable
    - ProtobufIngestpbV1FileCredential
      - `author` string
      - `createdAt` string, date-time, nullable
      - `description` string — the reason or purpose as to why this file credential exists
      - `id` string
      - `s3` union
        - object, nullable
        - ProtobufIngestpbV1FileCredentialS3
          - `accessKey` string
          - `region` string
          - `secretKey` string

## Response `200`

OK

- ProtobufControlpbV1CreateFileCredentialResponse
  - `credential` union
    - object, nullable
    - ProtobufIngestpbV1FileCredential
      - `author` string
      - `createdAt` string, date-time, nullable
      - `description` string — the reason or purpose as to why this file credential exists
      - `id` string
      - `s3` union
        - object, nullable
        - ProtobufIngestpbV1FileCredentialS3
          - `accessKey` string
          - `region` string
          - `secretKey` string

## Other responses

- `4XX` — Something is wrong with your request such as missing or invalid data. Correct your request and try again.
- `5XX` — Internal server error. Try again later or reach out to MetaRouter support.

---

[API](https://skmtc.net/metarouter/apis/control-api.md) · [All operations](https://skmtc.net/metarouter/apis/control-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metarouter/control-api/versions/5afc05bfaaa2/schema)
