Skip to content
Discussion options

You must be logged in to vote

Hello @avneeshkumar , the endpoints for fetching the prompts are exposed with examples in the UI (see screenshot).

Here is an example we share in the UI

import axios from 'axios';

const getConfig = async (appName: string, environmentSlug: string) => {
    const baseUrl = 'https://oss.agenta.ai/api/variants/configs/fetch';

    try {
        const response = await axios.post(baseUrl, {
            environment_ref: {
                slug: environmentSlug,
                version: null,
                id: null,
            },
            application_ref: {
                slug: appName,
                version: null,
                id: null,
            },
        }, {
            headers…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@avneeshkumar
Comment options

@mmabrouk
Comment options

Answer selected by mmabrouk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants