cURL
curl --request GET \ --url https://api.factory.ai/api/v0/machines/templates \ --header 'Authorization: Bearer <token>'
{ "templates": [ { "templateId": "<string>", "repoUrl": "<string>", "templateName": "<string>", "defaultBranch": "<string>", "createdBy": "<string>", "createdAt": 123, "buildStatus": { "status": "building", "failureReason": "setup_script_error", "buildStartedAt": 123, "builtAt": 123, "logs": "<string>" }, "lastUpdatedAt": 123, "environmentVariables": [ { "key": "<string>", "value": "<string>" } ], "userEnvironmentVariablesByUser": [ { "key": "<string>", "value": "<string>" } ], "setupScript": "<string>" } ], "pagination": { "hasMore": true, "nextCursor": "<string>" } }
Returns a paginated list of machine templates for the authenticated organization.
Factory API key or JWT token for authentication
Maximum number of items to return (1-100)
Cursor for pagination
Response for status 200
Show child attributes