GET
/v1/apps/{applicationId}/source-filebetaapiKeyworkspace
When to use
Read exact source bytes from a saved app revision.
For agents
Requires app write permission. The response contains base64 bytes for a file in that revision’s source manifest. Prefer checkoutApp from @permute/sdk/deploy to download and verify a complete project into a new folder.
Example
import { PermuteClient } from '@permute/sdk';
const orgClient = new PermuteClient({
apiKey: process.env.PERMUTE_API_KEY!,
});
const client = orgClient.withWorkspace(process.env.PERMUTE_WORKSPACE_ID!);
const result = await client.apps.sourceFile('appl_abcdefghijklmnopqrstuvwx', { revisionId: 'rvsn_source123', path: 'src/main.tsx' });Response
{
"data": {
"data": "ZXhwb3J0IHt9Ow=="
}
}