VignetimVignetim
Dom
Kontakt
Zaloguj sięRejestr
  1. Strona główna
  2. /
  3. Deweloperzy
  4. /
  5. Referencja API
  6. /
  7. Vignetim OpenAI MCP

Pierwsze kroki

  • Wprowadzenie
  • Uwierzytelnianie
  • Sandbox
  • Limitowanie zapytan
  • Obsluga bledow

Produkty

  • Winiety
  • Pakiety eSIM
  • Produkty ubezpieczeniowe
  • Kategorie pojazdow

Zamowienia

  • Utworz zamowienie
  • Lista zamowien
  • Szczegoly zamowienia

Webhooks

  • Przeglad webhookow
  • Zarzadzanie webhookami

MCP

  • Przeglad MCP
  • Vignetim Claude MCP
  • Vignetim OpenAI MCP

Vignetim OpenAI MCP

Polacz API Partnerskie Vignetim z Cursor, Windsurf, Continue, OpenAI Agents SDK oraz kazda platforma obslugujaca Model Context Protocol.

Szybka konfiguracja

Cursor

Otworz Cursor Settings -> MCP -> Add new MCP server:

{
	"mcpServers": {
		"vignetim": {
			"url": "https://vignetim.com/api/mcp",
			"headers": {
				"X-API-Key": "YOUR_API_KEY",
				"X-API-Secret": "YOUR_API_SECRET"
			}
		}
	}
}

Windsurf

Dodaj do konfiguracji MCP Windsurf:

{
	"mcpServers": {
		"vignetim": {
			"serverUrl": "https://vignetim.com/api/mcp",
			"headers": {
				"X-API-Key": "YOUR_API_KEY",
				"X-API-Secret": "YOUR_API_SECRET"
			}
		}
	}
}

Continue (VS Code)

Dodaj do .continue/config.json:

{
	"mcpServers": [
		{
			"name": "vignetim",
			"url": "https://vignetim.com/api/mcp",
			"headers": {
				"X-API-Key": "YOUR_API_KEY",
				"X-API-Secret": "YOUR_API_SECRET"
			}
		}
	]
}

OpenAI Agents SDK (Python)

from openai_agents import Agent, MCPServerStreamableHttp

async with MCPServerStreamableHttp(
    url="https://vignetim.com/api/mcp",
    name="vignetim",
    headers={
        "X-API-Key": "YOUR_API_KEY",
        "X-API-Secret": "YOUR_API_SECRET",
    },
) as mcp:
    agent = Agent(
        name="Vignetim Partner",
        instructions="You manage Vignetim API integration. Browse products, create orders, and manage webhooks.",
        mcp_servers=[mcp],
    )
    result = await agent.run("List all Hungarian vignettes for cars")

OpenAI Agents SDK (Node.js)

import { Agent, MCPServerStreamableHttp } from '@openai/agents';

const mcp = new MCPServerStreamableHttp({
	url: 'https://vignetim.com/api/mcp',
	name: 'vignetim',
	headers: {
		'X-API-Key': 'YOUR_API_KEY',
		'X-API-Secret': 'YOUR_API_SECRET',
	},
});

await mcp.connect();

const agent = new Agent({
	name: 'Vignetim Partner',
	instructions: 'You manage Vignetim API integration.',
	mcpServers: [mcp],
});

const result = await agent.run('Show me my recent orders');

Dostepne narzedzia (19 lacznie)

Produkty (6 narzedzi)

NarzedzieMetodaEndpoint API
list_ticketsGET/products/tickets
get_ticketGET/products/tickets/:id
list_esim_packagesGET/products/esim
list_insurance_productsGET/products/insurance
get_insurance_productGET/products/insurance/:slug
list_vehicle_categoriesGET/products/vehicle-categories

Zamowienia (4 narzedzia)

NarzedzieMetodaEndpoint API
create_orderPOST/orders
list_ordersGET/orders
get_orderGET/orders/:id
get_order_statusGET/orders/:id/status

Webhooki (5 narzedzi)

NarzedzieMetodaEndpoint API
create_webhookPOST/webhooks
list_webhooksGET/webhooks
update_webhookPUT/webhooks/:id
delete_webhookDELETE/webhooks/:id
test_webhookPOST/webhooks/:id/test

Dokumentacja (4 narzedzia -- bez wymaganego uwierzytelniania)

NarzedzieOpis
list_docsLista wszystkich sekcji dokumentacji API
get_docPobierz pelna tresc sekcji wg slug
search_docsSzukaj we wszystkich dokumentach
get_openapi_specPobierz URL specyfikacji OpenAPI 3.0

Tworzenie wlasnego agenta

from openai_agents import Agent, MCPServerStreamableHttp, Runner

SYSTEM_PROMPT = """You are a Vignetim Partner API assistant.
You help manage e-vignette, eSIM, and insurance orders.

Available actions:
- Browse products (vignettes, eSIM packages, insurance)
- Create and track orders
- Set up and manage webhook notifications
- Search API documentation for integration help

Always confirm before creating orders or modifying webhooks.
Use sandbox mode for testing."""

async def main():
    async with MCPServerStreamableHttp(
        url="https://vignetim.com/api/mcp",
        name="vignetim",
        headers={
            "X-API-Key": "YOUR_KEY",
            "X-API-Secret": "YOUR_SECRET",
            "X-Environment": "sandbox",
        },
    ) as mcp:
        agent = Agent(
            name="Vignetim Assistant",
            instructions=SYSTEM_PROMPT,
            mcp_servers=[mcp],
        )
        result = await Runner.run(
            agent,
            "Set up webhooks for order.completed and order.failed events "
            "at https://myapp.com/api/webhooks/vignetim, then send a test event."
        )
        print(result.final_output)

Tryb sandbox

Dodaj X-Environment: sandbox do swoich naglowkow, aby uzywac API sandbox z symulowanymi platnosciami:

{
	"headers": {
		"X-API-Key": "YOUR_SANDBOX_KEY",
		"X-API-Secret": "YOUR_SANDBOX_SECRET",
		"X-Environment": "sandbox"
	}
}

Alternatywa: Bezposredni dostep HTTP

Jesli Twoja platforma nie obsluguje MCP:

ZasobURL
Specyfikacja OpenAPIhttps://vignetim.com/api/partner-openapi
LLMs.txthttps://vignetim.com/llms.txt
AI Pluginhttps://vignetim.com/.well-known/ai-plugin.json
Dokumentacja APIhttps://vignetim.com/pl/developers/api-reference

Rozwiazywanie problemow

"API credentials required"

Narzedzia API wymagaja obu naglowkow X-API-Key i X-API-Secret. Narzedzia dokumentacji dzialaja bez danych uwierzytelniajacych.

Problemy z polaczeniem

Zweryfikuj, czy endpoint jest osiagalny:

curl -X POST https://vignetim.com/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Limitowanie zapytan

Serwer MCP respektuje limity zapytan API Partnerskiego: 100 zap./min ogolnie, 10 zap./min dla tworzenia zamowien. Sandbox ma mnoznik 5x.

Poprzedni← Vignetim Claude MCP
VignetimVignetim
Visa
Mastercard
American Express

Winiety i opłaty za pobliski

  • Bułgaria winieta
  • Winieta Republiki Czeskiej
  • Węgierka winieta
  • Słowacja winieta
  • Słowenia winieta
  • Rumunia winieta
  • Winieta Mołdawii
  • Szwajcarska winieta
  • Estonia winieta
  • Islandia
  • Holandia
  • Opłaty za Irlandię

Ubezpieczenia

  • Podróżne ubezpieczenie zdrowotne
  • Ubezpieczenie zielonej karty

Firma

  • FAQ
  • O
  • Kontakt
  • Referencja API
  • Fleet

Prywatność

  • Warunki i użycie
  • Polityka prywatności
  • Polityka plików cookie
  • Instrukcja usuwania danych użytkownika

Społeczny

  • Instagram
  • LinkedIn
  • X (Twitter)
  • Facebook

Vignetim | E-Vignette, eSIM & Pojistka

Z łatwością kup i zarządzaj europejskimi e-vignettei, eSIMs i pojistkami za pomocą Vignetim.

Dostępne na iOS i Android.

Pobierz w App StoreZdobądź to w Google Play

Copyright © 2026 Vignetim | Vignette, eSIM & Pojistka