{"id":"d56a55d4-ebb9-4c0e-8a68-c14712bd8bfa","shortId":"UqDkxG","kind":"skill","title":"telnyx-import-vapi","tagline":">-","description":"# Import Vapi Assistants into Telnyx\n\nMigrate your Vapi voice assistants to Telnyx in minutes. The import API pulls assistant configurations directly from Vapi using your API key and recreates them as Telnyx AI Assistants.\n\n**Interaction model**: Collect the user's Telnyx API key and Vapi API key, store the Vapi key as a Telnyx integration secret, run the import, then verify. Do NOT skip the secret-creation step — the import endpoint requires a secret reference, not a raw key.\n\n## What Gets Imported\n\n| Component | Imported? | Notes |\n|-----------|-----------|-------|\n| Instructions | Yes | Imported as-is |\n| Greeting / first message | Yes | Maps to assistant `greeting` |\n| Voice configuration | Yes | Voice provider and voice ID preserved |\n| Dynamic variables | Yes | Default values carried over |\n| Tools (hangup, transfer, webhook) | Yes | Tool definitions and configurations |\n| MCP Server integrations | Yes | Server URLs and tool mappings |\n| Call analysis / insights | Yes | Mapped to `insight_settings` |\n| Data retention preferences | Yes | Mapped to `privacy_settings` |\n| Knowledge base | **No** | Must be manually added post-import |\n| Secrets (API keys in tools) | **Partial** | Placeholder secrets created — you must re-enter values in the Telnyx portal |\n\n## Prerequisites\n\n1. **Telnyx API key** — get one at https://portal.telnyx.com/#/app/api-keys\n2. **Vapi API key** — from your Vapi dashboard\n3. Store the Vapi API key as a Telnyx integration secret at https://portal.telnyx.com/#/app/integration-secrets\n\n## Step 1: Store Your Vapi API Key as a Telnyx Secret\n\nBefore importing, store your Vapi API key as an integration secret in Telnyx. Note the secret reference name (e.g., `vapi_api_key`) — you'll use it in the import call.\n\nYou can create integration secrets via the Telnyx Portal under **Integration Secrets**, or via the API.\n\n## Step 2: Import All Vapi Assistants\n\nImport every assistant from your Vapi account:\n\n### curl\n\n```bash\ncurl \\\n  -X POST \\\n  -H \"Authorization: Bearer $TELNYX_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"provider\": \"vapi\",\n  \"api_key_ref\": \"vapi_api_key\"\n}' \\\n  \"https://api.telnyx.com/v2/ai/assistants/import\"\n```\n\n### Python\n\n```python\nimport os\nfrom telnyx import Telnyx\n\nclient = Telnyx(api_key=os.environ.get(\"TELNYX_API_KEY\"))\n\nassistants = client.ai.assistants.imports(\n    provider=\"vapi\",\n    api_key_ref=\"vapi_api_key\",\n)\n\nfor assistant in assistants.data:\n    print(f\"Imported: {assistant.name} (ID: {assistant.id})\")\n```\n\n### JavaScript\n\n```javascript\nimport Telnyx from 'telnyx';\n\nconst client = new Telnyx();\n\nconst assistants = await client.ai.assistants.imports({\n  provider: 'vapi',\n  api_key_ref: 'vapi_api_key',\n});\n\nfor (const assistant of assistants.data) {\n  console.log(`Imported: ${assistant.name} (ID: ${assistant.id})`);\n}\n```\n\n### Go\n\n```go\nassistants, err := client.AI.Assistants.Imports(context.TODO(), telnyx.AIAssistantImportsParams{\n    Provider:  telnyx.AIAssistantImportsParamsProviderVapi,\n    APIKeyRef: \"vapi_api_key\",\n})\nif err != nil {\n    panic(err.Error())\n}\nfor _, a := range assistants.Data {\n    fmt.Printf(\"Imported: %s (ID: %s)\\n\", a.Name, a.ID)\n}\n```\n\n### Java\n\n```java\nimport com.telnyx.sdk.models.ai.assistants.AssistantImportsParams;\nimport com.telnyx.sdk.models.ai.assistants.AssistantsList;\n\nAssistantImportsParams params = AssistantImportsParams.builder()\n    .provider(AssistantImportsParams.Provider.VAPI)\n    .apiKeyRef(\"vapi_api_key\")\n    .build();\nAssistantsList assistants = client.ai().assistants().imports(params);\nassistants.getData().forEach(a ->\n    System.out.printf(\"Imported: %s (ID: %s)%n\", a.getName(), a.getId()));\n```\n\n### Ruby\n\n```ruby\nassistants = client.ai.assistants.imports(\n  provider: :vapi,\n  api_key_ref: \"vapi_api_key\"\n)\n\nassistants.data.each do |a|\n  puts \"Imported: #{a.name} (ID: #{a.id})\"\nend\n```\n\n## Step 2 (Alternative): Import Specific Assistants\n\nTo import only certain assistants, pass their Vapi assistant IDs in `import_ids`:\n\n### curl\n\n```bash\ncurl \\\n  -X POST \\\n  -H \"Authorization: Bearer $TELNYX_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"provider\": \"vapi\",\n  \"api_key_ref\": \"vapi_api_key\",\n  \"import_ids\": [\"vapi-assistant-id-1\", \"vapi-assistant-id-2\"]\n}' \\\n  \"https://api.telnyx.com/v2/ai/assistants/import\"\n```\n\n### Python\n\n```python\nassistants = client.ai.assistants.imports(\n    provider=\"vapi\",\n    api_key_ref=\"vapi_api_key\",\n    import_ids=[\"vapi-assistant-id-1\", \"vapi-assistant-id-2\"],\n)\n```\n\n### JavaScript\n\n```javascript\nconst assistants = await client.ai.assistants.imports({\n  provider: 'vapi',\n  api_key_ref: 'vapi_api_key',\n  import_ids: ['vapi-assistant-id-1', 'vapi-assistant-id-2'],\n});\n```\n\n## Step 3: Verify the Import\n\nList your Telnyx assistants to confirm the import succeeded:\n\n### curl\n\n```bash\ncurl -H \"Authorization: Bearer $TELNYX_API_KEY\" \\\n  \"https://api.telnyx.com/v2/ai/assistants\"\n```\n\n### Python\n\n```python\nassistants = client.ai.assistants.list()\nfor a in assistants.data:\n    print(f\"{a.name} — {a.id} — imported: {a.import_metadata}\")\n```\n\n### JavaScript\n\n```javascript\nconst assistants = await client.ai.assistants.list();\nfor (const a of assistants.data) {\n  console.log(`${a.name} — ${a.id} — imported:`, a.import_metadata);\n}\n```\n\n## Step 4: Post-Import Checklist\n\nAfter importing, complete these manual steps:\n\n1. **Re-enter secrets** — Any API keys referenced by tools were imported as placeholders. Go to https://portal.telnyx.com/#/app/integration-secrets and supply the actual values.\n2. **Add knowledge bases** — Knowledge base content is not imported. Upload files or add URLs in the assistant's Knowledge Base settings.\n3. **Assign a phone number** — Connect a Telnyx phone number to your imported assistant to start receiving calls.\n4. **Test the assistant** — Use the Telnyx assistant testing API or make a test call to verify behavior.\n\n## Re-importing\n\nRunning the import again for the same Vapi assistants will **overwrite** the existing Telnyx copies with the latest configuration from Vapi. This is useful for syncing changes during a gradual migration.\n\n## API Reference\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `provider` | string | Yes | Must be `\"vapi\"` |\n| `api_key_ref` | string | Yes | Name of the Telnyx integration secret containing your Vapi API key |\n| `import_ids` | array[string] | No | Specific Vapi assistant IDs to import. Omit to import all. |\n\nEndpoint: `POST https://api.telnyx.com/v2/ai/assistants/import`\n\nFull API docs: https://developers.telnyx.com/api-reference/assistants/import-assistants-from-external-provider","tags":["telnyx","import","vapi","team-telnyx","agent-skills","ai-coding-agent","claude-code","cpaas","cursor","iot","llm","sdk"],"capabilities":["skill","source-team-telnyx","skill-telnyx-import-vapi","topic-agent-skills","topic-ai-coding-agent","topic-claude-code","topic-cpaas","topic-cursor","topic-iot","topic-llm","topic-sdk","topic-sip","topic-sms","topic-speech-to-text","topic-telephony"],"categories":["ai"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/team-telnyx/ai/telnyx-import-vapi","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add team-telnyx/ai","source_repo":"https://github.com/team-telnyx/ai","install_from":"skills.sh"}},"qualityScore":"0.533","qualityRationale":"deterministic score 0.53 from registry signals: · indexed on github topic:agent-skills · 167 github stars · SKILL.md body (6,636 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T12:54:45.831Z","embedding":null,"createdAt":"2026-04-18T22:06:31.183Z","updatedAt":"2026-04-22T12:54:45.831Z","lastSeenAt":"2026-04-22T12:54:45.831Z","tsv":"'/#/app/api-keys':194 '/#/app/integration-secrets':217,666 '/api-reference/assistants/import-assistants-from-external-provider':817 '/v2/ai/assistants':602 '/v2/ai/assistants/import':315,526,811 '1':185,219,518,545,571,647 '2':195,276,469,523,550,576,672 '3':203,578,694 '4':636,712 'a.getid':446 'a.getname':445 'a.id':413,466,614,631 'a.import':616,633 'a.name':412,464,613,630 'account':287 'actual':670 'ad':161 'add':673,685 'ai':37 'altern':470 'analysi':140 'api':21,30,46,50,166,187,197,207,223,234,249,274,297,307,311,326,330,336,340,368,372,395,427,453,457,496,506,510,533,537,559,563,598,653,721,764,776,790,813 'api.telnyx.com':314,525,601,810 'api.telnyx.com/v2/ai/assistants':600 'api.telnyx.com/v2/ai/assistants/import':313,524,809 'apikeyref':393,425 'application/json':303,502 'array':794 'as-i':94 'assign':695 'assist':7,14,23,38,103,280,283,332,343,363,376,386,431,433,449,473,478,482,516,521,529,543,548,554,569,574,585,605,621,689,707,715,719,741,799 'assistant.id':351,383 'assistant.name':349,381 'assistantimportsparam':420 'assistantimportsparams.builder':422 'assistantimportsparams.provider.vapi':424 'assistants.data':345,378,405,610,628 'assistants.data.each':459 'assistants.getdata':436 'assistantslist':430 'author':294,493,595 'await':364,555,622 'base':156,675,677,692 'bash':289,488,592 'bearer':295,494,596 'behavior':729 'build':429 'call':139,258,711,726 'carri':119 'certain':477 'chang':759 'checklist':640 'client':324,359 'client.ai':432 'client.ai.assistants.imports':333,365,388,450,530,556 'client.ai.assistants.list':606,623 'collect':41 'com.telnyx.sdk.models.ai.assistants.assistantimportsparams':417 'com.telnyx.sdk.models.ai.assistants.assistantslist':419 'complet':643 'compon':88 'configur':24,106,129,751 'confirm':587 'connect':699 'console.log':379,629 'const':358,362,375,553,620,625 'contain':787 'content':301,500,678 'content-typ':300,499 'context.todo':389 'copi':747 'creat':173,261 'creation':72 'curl':288,290,487,489,591,593 'd':304,503 'dashboard':202 'data':147 'default':117 'definit':127 'descript':769 'developers.telnyx.com':816 'developers.telnyx.com/api-reference/assistants/import-assistants-from-external-provider':815 'direct':25 'doc':814 'dynam':114 'e.g':247 'end':467 'endpoint':76,807 'enter':178,650 'err':387,398 'err.error':401 'everi':282 'exist':745 'f':347,612 'field':766 'file':683 'first':98 'fmt.printf':406 'foreach':437 'full':812 'get':86,189 'go':384,385,662 'gradual':762 'greet':97,104 'h':293,299,492,498,594 'hangup':122 'id':112,350,382,409,442,465,483,486,513,517,522,540,544,549,566,570,575,793,800 'import':3,5,20,63,75,87,89,93,164,230,257,277,281,318,322,348,354,380,407,416,418,434,440,463,471,475,485,512,539,565,581,589,615,632,639,642,659,681,706,732,735,792,802,805 'insight':141,145 'instruct':91 'integr':59,132,212,238,262,269,785 'interact':39 'java':414,415 'javascript':352,353,551,552,618,619 'key':31,47,51,55,84,167,188,198,208,224,235,250,298,308,312,327,331,337,341,369,373,396,428,454,458,497,507,511,534,538,560,564,599,654,777,791 'knowledg':155,674,676,691 'latest':750 'list':582 'll':252 'make':723 'manual':160,645 'map':101,138,143,151 'mcp':130 'messag':99 'metadata':617,634 'migrat':10,763 'minut':18 'model':40 'must':158,175,773 'n':411,444 'name':246,781 'new':360 'nil':399 'note':90,242 'number':698,703 'omit':803 'one':190 'os':319 'os.environ.get':328 'overwrit':743 'panic':400 'param':421,435 'partial':170 'pass':479 'phone':697,702 'placehold':171,661 'portal':183,267 'portal.telnyx.com':193,216,665 'portal.telnyx.com/#/app/api-keys':192 'portal.telnyx.com/#/app/integration-secrets':215,664 'post':163,292,491,638,808 'post-import':162,637 'prefer':149 'prerequisit':184 'preserv':113 'print':346,611 'privaci':153 'provid':109,305,334,366,391,423,451,504,531,557,770 'pull':22 'put':462 'python':316,317,527,528,603,604 'rang':404 'raw':83 're':177,649,731 're-ent':176,648 're-import':730 'receiv':710 'recreat':33 'ref':309,338,370,455,508,535,561,778 'refer':80,245,765 'referenc':655 'requir':77,768 'retent':148 'rubi':447,448 'run':61,733 'secret':60,71,79,165,172,213,228,239,244,263,270,651,786 'secret-cr':70 'server':131,134 'set':146,154,693 'skill' 'skill-telnyx-import-vapi' 'skip':68 'source-team-telnyx' 'specif':472,797 'start':709 'step':73,218,275,468,577,635,646 'store':52,204,220,231 'string':771,779,795 'succeed':590 'suppli':668 'sync':758 'system.out.printf':439 'telnyx':2,9,16,36,45,58,182,186,211,227,241,266,296,321,323,325,329,355,357,361,495,584,597,701,718,746,784 'telnyx-import-vapi':1 'telnyx.aiassistantimportsparams':390 'telnyx.aiassistantimportsparamsprovidervapi':392 'test':713,720,725 'tool':121,126,137,169,657 'topic-agent-skills' 'topic-ai-coding-agent' 'topic-claude-code' 'topic-cpaas' 'topic-cursor' 'topic-iot' 'topic-llm' 'topic-sdk' 'topic-sip' 'topic-sms' 'topic-speech-to-text' 'topic-telephony' 'transfer':123 'type':302,501,767 'upload':682 'url':135,686 'use':28,253,716,756 'user':43 'valu':118,179,671 'vapi':4,6,12,27,49,54,196,201,206,222,233,248,279,286,306,310,335,339,367,371,394,426,452,456,481,505,509,515,520,532,536,542,547,558,562,568,573,740,753,775,789,798 'vapi-assistant-id':514,519,541,546,567,572 'variabl':115 'verifi':65,579,728 'via':264,272 'voic':13,105,108,111 'webhook':124 'x':291,490 'yes':92,100,107,116,125,133,142,150,772,780","prices":[{"id":"97f8a46b-b9f1-4441-b510-2bb7de8fb006","listingId":"d56a55d4-ebb9-4c0e-8a68-c14712bd8bfa","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"team-telnyx","category":"ai","install_from":"skills.sh"},"createdAt":"2026-04-18T22:06:31.183Z"}],"sources":[{"listingId":"d56a55d4-ebb9-4c0e-8a68-c14712bd8bfa","source":"github","sourceId":"team-telnyx/ai/telnyx-import-vapi","sourceUrl":"https://github.com/team-telnyx/ai/tree/main/skills/telnyx-import-vapi","isPrimary":false,"firstSeenAt":"2026-04-18T22:06:31.183Z","lastSeenAt":"2026-04-22T12:54:45.831Z"}],"details":{"listingId":"d56a55d4-ebb9-4c0e-8a68-c14712bd8bfa","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"team-telnyx","slug":"telnyx-import-vapi","github":{"repo":"team-telnyx/ai","stars":167,"topics":["agent-skills","ai","ai-coding-agent","claude-code","cpaas","cursor","iot","llm","sdk","sip","sms","speech-to-text","telephony","telnyx","tts","twilio-migration","voice-agents","voice-ai","webrtc","windsurf"],"license":"mit","html_url":"https://github.com/team-telnyx/ai","pushed_at":"2026-04-21T22:09:49Z","description":"Official one-stop shop for AI Agents and developers building with Telnyx.","skill_md_sha":"ca973f4bd67a75a170e2c0eb619f04b82adacdb7","skill_md_path":"skills/telnyx-import-vapi/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/team-telnyx/ai/tree/main/skills/telnyx-import-vapi"},"layout":"multi","source":"github","category":"ai","frontmatter":{"name":"telnyx-import-vapi","description":">-"},"skills_sh_url":"https://skills.sh/team-telnyx/ai/telnyx-import-vapi"},"updatedAt":"2026-04-22T12:54:45.831Z"}}