Get a source commit - Spacefast Docs

Get a source commit

Read commit metadata, including parentShas in Git order. An empty parentShas array identifies a root commit.

Endpoint

GET /v1/spaces/{spaceId}/source/commit

Authorization

Authorization Bearer token · header required

Authorization: Bearer <token> with an API key (sfa_ prefix), an OAuth access token, a session token, or a Space machine credential (sfm_ prefix).

or

Authorization OAuth2 access token · header required

OAuth 2.0 with Spacefast scopes. People use the authorization code flow; machines use client credentials.

Scopes:

spaces:read

Path parameters

spaceId string required

Query parameters

Responses

200 Response for status 200

Error Responses

4xx and 5xx errors

Every 4xx and 5xx response is one RFC 9457 problem document served as application/problem+json.