POST/v1/projects/:project_id/self-hosted/distribution/credentials
| 1 | import requests |
| 2 | |
| 3 | url = "https://api.deepgram.com/v1/projects/project_id/self-hosted/distribution/credentials" |
| 4 | |
| 5 | payload = {} |
| 6 | headers = { |
| 7 | "Authorization": "<apiKey>", |
| 8 | "Content-Type": "application/json" |
| 9 | } |
| 10 | |
| 11 | response = requests.post(url, json=payload, headers=headers) |
| 12 | |
| 13 | print(response.json()) |
| 1 | { |
| 2 | "member": { |
| 3 | "member_id": "c7b9b131-73f3-11d9-8665-0b00d2e44b83", |
| 4 | "email": "email@example.com" |
| 5 | }, |
| 6 | "distribution_credentials": { |
| 7 | "distribution_credentials_id": "82c32c10-53b2-4d23-993f-864b3d44502a", |
| 8 | "provider": "quay", |
| 9 | "scopes": [ |
| 10 | "self-hosted:product:api", |
| 11 | "self-hosted:product:engine" |
| 12 | ], |
| 13 | "created": "2023-06-28T15:36:59.609841Z", |
| 14 | "comment": "My Self-Hosted Distribution Credentials" |
| 15 | } |
| 16 | } |