---
title: "Set the organization OpenCode Go API key"
method: POST
path: "/v1/opencode-go/credentials"
tags: ["Credentials"]
---

# Set the organization OpenCode Go API key

`POST /v1/opencode-go/credentials`

## Request body

- ApiKeyCredentialRequest
  - `api_key` string, required

## Response `200`

Credential stored

- ApiKeyCredentialUploadResponse
  - `success` boolean, required
  - `credentialId` string, uuid, required

## Other responses

- `400` — Bad request - Missing or invalid parameters
- `401` — Unauthorized - Invalid or missing API key
- `403` — Forbidden - The authenticated account cannot access this resource
- `500` — Internal server error

---

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