---
title: "Create a Project Self-Hosted Distribution Credential"
method: POST
path: "/v1/projects/{project_id}/self-hosted/distribution/credentials"
tags: ["distributionCredentials"]
---

# Create a Project Self-Hosted Distribution Credential

`POST /v1/projects/{project_id}/self-hosted/distribution/credentials`

Creates a set of distribution credentials for the specified project

## Path parameters

- `project_id` string, required

## Query parameters

- `scopes` V1ProjectsProjectIdSelfHostedDistributionCredentialsPostParametersScopesSchemaItems[]
- `provider` 'quay'

## Headers

- `Authorization` string, required

## Request body

- CreateProjectDistributionCredentialsV1Request — Request body for creating distribution credentials
  - `comment` string — Optional comment about the credentials

## Response `200`

Single distribution credential

- CreateProjectDistributionCredentialsV1Response
  - `member` CreateProjectDistributionCredentialsV1ResponseMember, required
    - `member_id` string, uuid, required — Unique identifier for the member
    - `email` string, email, required — Email address of the member
  - `distribution_credentials` CreateProjectDistributionCredentialsV1ResponseDistributionCredentials, required
    - `distribution_credentials_id` string, uuid, required — Unique identifier for the distribution credentials
    - `provider` string, required — The provider of the distribution service
    - `comment` string — Optional comment about the credentials
    - `scopes` string[], required — List of permission scopes for the credentials
    - `created` string, date-time, required — Timestamp when the credentials were created

## Other responses

- `400` — Invalid Request

---

[API](https://skmtc.net/deepgram/apis/rest-api.md) · [All operations](https://skmtc.net/deepgram/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepgram/rest-api/revisions/76f89c68dacf/schema)
