---
title: "Get Git credentials for an active daemon process"
method: POST
path: "/daemon/processes/{processID}/git-credentials"
tags: ["Machine Daemon"]
---

# Get Git credentials for an active daemon process

`POST /daemon/processes/{processID}/git-credentials`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/daemon/processes/{processID}/git-credentials`
- Auth: HTTP bearer

Requires machine daemon authentication and an active, execution-granted process on that machine. The process's original config and the agent's current config must have the same Git credentials settings. Credentials are limited to those settings' repositories and permission and are reauthorized on every request.

## Path parameters

- `processID` string, required

## Response `200`

Short-lived installation credentials. Never cache this response.

- object
  - `token` string, required
  - `expires_at` string, date-time, required

## Other responses

- `401`: Authentication is required or invalid.
- `404`: The requested resource was not found or is not visible.
- `409`: The request conflicts with current resource state or idempotency history.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-10-07** `680248a0ba72`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/daemon/processes/:processID/git-credentials/post.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
