Connects a Facebook Page or Instagram account from an access token you
already hold, without sending the customer through an authorization
screen again.
This is for one situation: a platform moving existing connections onto
Nylon. POST /v1/connections is the normal way in, and it asks a human
to approve, because that is the only way a token can be granted. Use
this only for tokens that were already granted to the Meta app Nylon is
configured with — your own, under Platform keys.
The token is verified against Meta before anything is stored, so a
stale one is refused here rather than at the first publish. Re-running
an import refreshes the connection instead of duplicating it.
{
"error": {
"code": "unauthorized",
"message": "A valid Nylon API key is required.",
"details": [
{
"message": "Instagram requires at least 1 media item — text-only posts are not supported.",
"field": "profile_ids",
"network": "instagram",
"code": "invalid_request"
}
]
}
}
{
"error": {
"code": "unauthorized",
"message": "A valid Nylon API key is required."
}
}
{
"error": {
"code": "payment_required",
"message": "Nylon Studio is beyond your free allowance and your subscription is not active. Restart billing to publish through them again."
}
}
{
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry after the window resets."
}
}
{
"error": {
"code": "unauthorized",
"message": "A valid Nylon API key is required.",
"details": [
{
"message": "Instagram requires at least 1 media item — text-only posts are not supported.",
"field": "profile_ids",
"network": "instagram",
"code": "invalid_request"
}
]
}
}
Authorizations
Authorization
string
header
required
An API key beginning with nylon_live_.
Body
application/json
network
enum<string>
required
Available options:
facebook,
instagram
external_id
string
required
The account's id on the network — a Page id, an Instagram account id.
Example:
"102938475610111"
access_token
string
required
The Page access token. Instagram authenticates with the token of the Page it is linked to, so both networks want the Page's.
page_id
string | null
The Page an Instagram account is linked to. Worked out from the token when omitted.
page_name
string | null
Response
The connected account.
data
object
Hide child attributes
data.id
string
required
Stable Nylon identifier for the connected profile. This is what you address a post to.
Example:
"cly7p2q4k0001x8b3f2n9d0aa"
data.network
enum<string>
required
A network Nylon publishes to.
Available options:
facebook,
instagram,
x,
linkedin,
pinterest,
bluesky,
threads,
tiktok,
youtube,
google_business,
mastodon,
discord,
dribbble,
kick,
twitch,
whop,
devto
Example:
"instagram"
data.external_id
string
required
The network's own identifier for the account.
Example:
"17841400000000000"
data.name
string
required
Display name of the connected profile.
Example:
"Nylon Studio"
data.status
enum<string>
required
active is healthy. needs_attention means the stored credentials
stopped working and the customer has to reconnect in Nylon.
Available options:
active,
needs_attention
Example:
"active"
data.suspended
boolean
required
True when the profile is beyond the free allowance and billing is
not active. It is still listed and still connected, but publishing
to it is refused with 402.
Example:
false
data.connected_at
string<date-time>
required
Example:
"2026-05-14T10:20:00.000Z"
data.handle
string | null
Network username without a leading @, when the network has one.
{
"error": {
"code": "unauthorized",
"message": "A valid Nylon API key is required.",
"details": [
{
"message": "Instagram requires at least 1 media item — text-only posts are not supported.",
"field": "profile_ids",
"network": "instagram",
"code": "invalid_request"
}
]
}
}
{
"error": {
"code": "unauthorized",
"message": "A valid Nylon API key is required."
}
}
{
"error": {
"code": "payment_required",
"message": "Nylon Studio is beyond your free allowance and your subscription is not active. Restart billing to publish through them again."
}
}
{
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry after the window resets."
}
}
{
"error": {
"code": "unauthorized",
"message": "A valid Nylon API key is required.",
"details": [
{
"message": "Instagram requires at least 1 media item — text-only posts are not supported.",
"field": "profile_ids",
"network": "instagram",
"code": "invalid_request"
}
]
}
}
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Nylon API Docs","colors":{"primary":"#357adf","light":"#359bdf","dark":"#357adf"},"logo":{"light":"https://mintcdn.com/nylon/8sDWPpZI53wlGMBT/images/nylon-logo.svg?fit=max\u0026auto=format\u0026n=8sDWPpZI53wlGMBT\u0026q=85\u0026s=1eb1edf70a217092111a28527249906b","dark":"https://mintcdn.com/nylon/8sDWPpZI53wlGMBT/images/nylon-logo-dark.svg?fit=max\u0026auto=format\u0026n=8sDWPpZI53wlGMBT\u0026q=85\u0026s=61bb5cbe6da73c3a5edaaf4d26314b54","href":"https://app.nylon.dev/"},"favicon":"https://mintcdn.com/nylon/8sDWPpZI53wlGMBT/images/favicon.svg?fit=max\u0026auto=format\u0026n=8sDWPpZI53wlGMBT\u0026q=85\u0026s=6129a297664c479adc04e86d342d60bf","api":{"openapi":{"source":"openapi.yaml","directory":"api-reference"},"params":{"expanded":"all"},"playground":{"display":"interactive","proxy":true},"examples":{"defaults":"required","languages":["curl","javascript","python","php","ruby"],"prefill":true,"autogenerate":true},"url":"full"},"navbar":{"links":[{"href":"https://app.nylon.dev/connections","label":"Connections"},{"href":"https://app.nylon.dev/api","label":"API keys"}]},"icons":{"library":"lucide"},"contextual":{"options":["chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nylon","hasAudioNarration":false,"actualSubdomain":"nylon","customDomains":["docs.nylon.dev"],"gitSource":{"type":"github","owner":"ocoya","repo":"ocoya","deployBranch":"main","contentDirectory":"apps/nylon-web/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ac41b48ccd3b85aecd8c4bc","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"Help center","count":33},{"language":"default","tag":"API reference","count":32},{"language":"default","tag":"Endpoints","count":31},{"language":"default","tag":"Documentation","count":12},{"language":"default","tag":"Connections","count":12},{"language":"default","tag":"Webhooks","count":11},{"language":"default","tag":"Get started","count":10},{"language":"default","tag":"Posts","count":7},{"language":"default","tag":"Guides","count":5},{"language":"default","tag":"Inbox","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":":root{--nylon-publishing: #357adf;--nylon-publishing-soft: #eaf2fc;--nylon-inbox: #059669;--nylon-inbox-soft: #e7f6f0;--nylon-analytics: #ea580c;--nylon-analytics-soft: #fdefe6;--nylon-border: #e5e5e5;--nylon-muted: #737373}.dark{--nylon-publishing-soft: rgba(53, 122, 223, 0.14);--nylon-inbox-soft: rgba(5, 150, 105, 0.14);--nylon-analytics-soft: rgba(234, 88, 12, 0.14);--nylon-border: #262626;--nylon-muted: #a3a3a3}[data-pillar=\"publishing\"]{--pillar: var(--nylon-publishing);--pillar-soft: var(--nylon-publishing-soft)}[data-pillar=\"inbox\"]{--pillar: var(--nylon-inbox);--pillar-soft: var(--nylon-inbox-soft)}[data-pillar=\"analytics\"]{--pillar: var(--nylon-analytics);--pillar-soft: var(--nylon-analytics-soft)}.pillar-hero{display:flex;gap:1rem;align-items:flex-start;padding:1.25rem;margin:0 0 1.75rem;border:1px solid var(--nylon-border);border-left:3px solid var(--pillar);border-radius:12px;background:linear-gradient(90deg, var(--pillar-soft), transparent 70%)}.pillar-hero__mark{display:grid;place-items:center;flex:0 0 auto;width:2.25rem;height:2.25rem;border-radius:9px;background:var(--pillar-soft);color:var(--pillar)}.pillar-hero__mark svg{width:1.125rem;height:1.125rem}.pillar-hero__body{min-width:0}.pillar-hero__eyebrow{display:block;margin:0 0 0.15rem;font-size:0.75rem;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;color:var(--pillar)}.pillar-hero__body p{margin:0;color:var(--nylon-muted);font-size:0.9375rem;line-height:1.55}.pillar-status{display:inline-flex;align-items:center;gap:0.4rem;margin-top:0.6rem;padding:0.15rem 0.55rem;border-radius:999px;font-size:0.75rem;font-weight:500;border:1px solid currentColor}.pillar-status::before{content:'';width:0.4rem;height:0.4rem;border-radius:999px;background:currentColor}.pillar-status--live{color:#047857}.pillar-status--partial{color:#047857}.pillar-status--soon{color:#b45309}#sidebar a[href^=\"/publishing\"] svg,#sidebar a[href*=\"/publishing\"] svg{color:var(--nylon-publishing)}#sidebar a[href^=\"/inbox\"] svg,#sidebar a[href*=\"/inbox\"] svg{color:var(--nylon-inbox)}#sidebar a[href^=\"/analytics\"] svg,#sidebar a[href*=\"/analytics\"] svg{color:var(--nylon-analytics)}#navbar a[href=\"https://app.nylon.dev/\"] img,[data-component-part=\"navbar-logo\"] img{height:18px!important;max-height:18px!important;width:auto!important;max-width:132px!important;object-fit:contain}#navbar a[href=\"https://app.nylon.dev/connections\"],#navbar a[href=\"https://app.nylon.dev/api\"],[data-component-part=\"navbar-link\"][href=\"https://app.nylon.dev/connections\"],[data-component-part=\"navbar-link\"][href=\"https://app.nylon.dev/api\"]{color:#52525b;font-weight:500;text-decoration:none}#navbar a[href=\"https://app.nylon.dev/connections\"]:hover,#navbar a[href=\"https://app.nylon.dev/connections\"]:focus,#navbar a[href=\"https://app.nylon.dev/api\"]:hover,#navbar a[href=\"https://app.nylon.dev/api\"]:focus,[data-component-part=\"navbar-link\"][href=\"https://app.nylon.dev/connections\"]:hover,[data-component-part=\"navbar-link\"][href=\"https://app.nylon.dev/connections\"]:focus,[data-component-part=\"navbar-link\"][href=\"https://app.nylon.dev/api\"]:hover,[data-component-part=\"navbar-link\"][href=\"https://app.nylon.dev/api\"]:focus{color:#27272a}"}]}
{"page":{"pagePath":"api-reference/connections/import-a-connection","slug":"/api-reference/connections/import-a-connection","pageMetadata":{"title":"Import a connection","description":"Connects a Facebook Page or Instagram account from an access token you\nalready hold, without sending the customer through an authorization\nscreen again.\n\nThis is for one situation: a platform moving existing connections onto\nNylon. `POST /v1/connections` is the normal way in, and it asks a human\nto approve, because that is the only way a token can be granted. Use\nthis only for tokens that were already granted to the Meta app Nylon is\nconfigured with — your own, under Platform keys.\n\nThe token is verified against Meta before anything is stored, so a\nstale one is refused here rather than at the first publish. Re-running\nan import refreshes the connection instead of duplicating it.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/connections/import","href":"/api-reference/connections/import-a-connection","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Connects a Facebook Page or Instagram account from an access token you\\nalready hold, without sending the customer through an authorization\\nscreen again.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"This is for one situation: a platform moving existing connections onto\\nNylon. \", _jsx(_components.code, {\n children: \"POST /v1/connections\"\n }), \" is the normal way in, and it asks a human\\nto approve, because that is the only way a token can be granted. Use\\nthis only for tokens that were already granted to the Meta app Nylon is\\nconfigured with — your own, under Platform keys.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"The token is verified against Meta before anything is stored, so a\\nstale one is refused here rather than at the first publish. Re-running\\nan import refreshes the connection instead of duplicating it.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Import a connection","description":"Connects a Facebook Page or Instagram account from an access token you\nalready hold, without sending the customer through an authorization\nscreen again.\n\nThis is for one situation: a platform moving existing connections onto\nNylon. `POST /v1/connections` is the normal way in, and it asks a human\nto approve, because that is the only way a token can be granted. Use\nthis only for tokens that were already granted to the Meta app Nylon is\nconfigured with — your own, under Platform keys.\n\nThe token is verified against Meta before anything is stored, so a\nstale one is refused here rather than at the first publish. Re-running\nan import refreshes the connection instead of duplicating it.\n","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/connections/import","href":"/api-reference/connections/import-a-connection","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"importConnection","tags":["Connections"],"summary":"Import a connection","description":"Connects a Facebook Page or Instagram account from an access token you\nalready hold, without sending the customer through an authorization\nscreen again.\n\nThis is for one situation: a platform moving existing connections onto\nNylon. `POST /v1/connections` is the normal way in, and it asks a human\nto approve, because that is the only way a token can be granted. Use\nthis only for tokens that were already granted to the Meta app Nylon is\nconfigured with — your own, under Platform keys.\n\nThe token is verified against Meta before anything is stored, so a\nstale one is refused here rather than at the first publish. Re-running\nan import refreshes the connection instead of duplicating it.\n","requestBody":"b87d705b-08f5-411a-be05-d95225da73b5","responses":{"200":"9a9455a3-4132-4fac-81aa-99cc2072888e","400":"dfa66ad4-4768-4a15-8340-91c649b373a8","401":"04a1a2f3-16ff-4fa7-943f-3be20682d6f0","402":"384c10b0-33e6-4ad5-a953-5813404448e0","429":"34f036a1-4a41-41c1-bd01-4d84103a406a","500":"10f796e6-17cd-42c5-8b43-a336f9159143"},"method":"post","type":"path","servers":["7e3142f8-7813-4409-b324-6875bf414bdf"],"security":["4a364daf-05fe-4010-8757-60e84043d0f6"],"path":"/v1/connections/import","baseUrlOptions":["https://api.nylon.dev"],"title":"Import a connection","codeSamples":[],"requestExampleLanguages":["bash","javascript","python","php","ruby"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.external_id":"102938475610111","body.access_token":"\u003cstring>","body.page_id.oneOf.0":"\u003cstring>","body.page_name.oneOf.0":"\u003cstring>"}],"urlDisplay":"full"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["network","external_id","access_token"],"properties":{"network":{"type":"string","enum":["facebook","instagram"],"isRequired":true,"uniqueKey":"network","typeLabel":"enum\u003cstring>"},"external_id":{"type":"string","description":"The account's id on the network — a Page id, an Instagram account id.","example":"102938475610111","isRequired":true,"uniqueKey":"external_id","typeLabel":"string"},"access_token":{"type":"string","description":"The Page access token. Instagram authenticates with the token of the Page it is linked to, so both networks want the Page's.","isRequired":true,"uniqueKey":"access_token","typeLabel":"string"},"page_id":{"oneOf":[{"type":"string","description":"The Page an Instagram account is linked to. Worked out from the token when omitted.","uniqueKey":"page_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The Page an Instagram account is linked to. Worked out from the token when omitted.","uniqueKey":"page_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"page_id","typeLabel":"string | null"},"page_name":{"oneOf":[{"type":"string","uniqueKey":"page_name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"page_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"page_name","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"external_id":"102938475610111","access_token":"\u003cstring>","page_id":"\u003cstring>","page_name":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"9a9455a3-4132-4fac-81aa-99cc2072888e":{"description":"The connected account.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","required":["id","network","external_id","name","status","suspended","connected_at"],"properties":{"id":{"type":"string","description":"Stable Nylon identifier for the connected profile. This is what you address a post to.","example":"cly7p2q4k0001x8b3f2n9d0aa","isRequired":true,"uniqueKey":"data.id","typeLabel":"string"},"network":{"type":"string","description":"A network Nylon publishes to.","enum":["facebook","instagram","x","linkedin","pinterest","bluesky","threads","tiktok","youtube","google_business","mastodon","discord","dribbble","kick","twitch","whop","devto"],"example":"instagram","isRequired":true,"uniqueKey":"data.network","typeLabel":"enum\u003cstring>"},"external_id":{"type":"string","description":"The network's own identifier for the account.","example":"17841400000000000","isRequired":true,"uniqueKey":"data.external_id","typeLabel":"string"},"name":{"type":"string","description":"Display name of the connected profile.","example":"Nylon Studio","isRequired":true,"uniqueKey":"data.name","typeLabel":"string"},"status":{"type":"string","description":"`active` is healthy. `needs_attention` means the stored credentials\nstopped working and the customer has to reconnect in Nylon.\n","enum":["active","needs_attention"],"example":"active","isRequired":true,"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"suspended":{"type":"boolean","description":"True when the profile is beyond the free allowance and billing is\nnot active. It is still listed and still connected, but publishing\nto it is refused with `402`.\n","example":false,"isRequired":true,"uniqueKey":"data.suspended","typeLabel":"boolean"},"connected_at":{"type":"string","format":"date-time","example":"2026-05-14T10:20:00.000Z","isRequired":true,"uniqueKey":"data.connected_at","typeLabel":"string\u003cdate-time>"},"handle":{"oneOf":[{"type":"string","description":"Network username without a leading @, when the network has one.","example":"nylonstudio","uniqueKey":"data.handle.oneOf.0","typeLabel":"string"},{"type":"null","description":"Network username without a leading @, when the network has one.","example":"nylonstudio","uniqueKey":"data.handle.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.handle","typeLabel":"string | null"},"avatar_url":{"oneOf":[{"type":"string","format":"uri","example":"https://cdn.example.com/avatar.jpg","uniqueKey":"data.avatar_url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","example":"https://cdn.example.com/avatar.jpg","uniqueKey":"data.avatar_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.avatar_url","typeLabel":"string\u003curi> | null"},"profile_url":{"oneOf":[{"type":"string","format":"uri","example":"https://www.instagram.com/nylonstudio","uniqueKey":"data.profile_url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","example":"https://www.instagram.com/nylonstudio","uniqueKey":"data.profile_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.profile_url","typeLabel":"string\u003curi> | null"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":"cly7p2q4k0001x8b3f2n9d0aa","network":"instagram","external_id":"17841400000000000","name":"Nylon Studio","status":"active","suspended":false,"connected_at":"2026-05-14T10:20:00.000Z","handle":"nylonstudio","avatar_url":"https://cdn.example.com/avatar.jpg","profile_url":"https://www.instagram.com/nylonstudio"}}}},"exampleType":"generated"}},"exampleType":"generated"},"dfa66ad4-4768-4a15-8340-91c649b373a8":{"description":"Meta refused the token, or the id does not match it.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"The stable identifier to branch on.","enum":["invalid_request","unauthorized","payment_required","forbidden","not_found","conflict","rate_limited","unsupported","publish_failed","internal_error"],"example":"unauthorized","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Written for humans. Do not match on it.","example":"A valid Nylon API key is required.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Present when the failure has a per-field or per-network breakdown.","items":{"type":"object","required":["message"],"properties":{"message":{"type":"string","example":"Instagram requires at least 1 media item — text-only posts are not supported.","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"},"field":{"type":"string","description":"The request field the problem is about.","example":"profile_ids","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"network":{"type":"string","description":"The network the problem is about.","example":"instagram","uniqueKey":"error.details.items.[INDEX].network","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable identifier for this problem. On a per-network\ndetail this is a publishing code: `invalid_request`,\n`unsupported`, `media_error`, `reauthentication_required`,\n`rejected_by_network`, `network_error`, `timeout`,\n`profile_unavailable` or `internal_error`.\n","example":"invalid_request","uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"unauthorized","message":"A valid Nylon API key is required.","details":[{"message":"Instagram requires at least 1 media item — text-only posts are not supported.","field":"profile_ids","network":"instagram","code":"invalid_request"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"04a1a2f3-16ff-4fa7-943f-3be20682d6f0":{"description":"The bearer API key is missing, malformed or revoked.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"The stable identifier to branch on.","enum":["invalid_request","unauthorized","payment_required","forbidden","not_found","conflict","rate_limited","unsupported","publish_failed","internal_error"],"example":"unauthorized","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Written for humans. Do not match on it.","example":"A valid Nylon API key is required.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Present when the failure has a per-field or per-network breakdown.","items":{"type":"object","required":["message"],"properties":{"message":{"type":"string","example":"Instagram requires at least 1 media item — text-only posts are not supported.","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"},"field":{"type":"string","description":"The request field the problem is about.","example":"profile_ids","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"network":{"type":"string","description":"The network the problem is about.","example":"instagram","uniqueKey":"error.details.items.[INDEX].network","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable identifier for this problem. On a per-network\ndetail this is a publishing code: `invalid_request`,\n`unsupported`, `media_error`, `reauthentication_required`,\n`rejected_by_network`, `network_error`, `timeout`,\n`profile_unavailable` or `internal_error`.\n","example":"invalid_request","uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"missingKey":{"title":"missingKey","value":{"error":{"code":"unauthorized","message":"A valid Nylon API key is required."}}}},"exampleType":"examples"}},"exampleType":"examples"},"384c10b0-33e6-4ad5-a953-5813404448e0":{"description":"Billing is blocking the action. Most often an addressed profile is\nbeyond the free allowance while the subscription is inactive — it is\nstill connected and still listed with `suspended: true`, but nothing\ncan be published through it until billing restarts.\n","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"The stable identifier to branch on.","enum":["invalid_request","unauthorized","payment_required","forbidden","not_found","conflict","rate_limited","unsupported","publish_failed","internal_error"],"example":"unauthorized","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Written for humans. Do not match on it.","example":"A valid Nylon API key is required.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Present when the failure has a per-field or per-network breakdown.","items":{"type":"object","required":["message"],"properties":{"message":{"type":"string","example":"Instagram requires at least 1 media item — text-only posts are not supported.","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"},"field":{"type":"string","description":"The request field the problem is about.","example":"profile_ids","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"network":{"type":"string","description":"The network the problem is about.","example":"instagram","uniqueKey":"error.details.items.[INDEX].network","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable identifier for this problem. On a per-network\ndetail this is a publishing code: `invalid_request`,\n`unsupported`, `media_error`, `reauthentication_required`,\n`rejected_by_network`, `network_error`, `timeout`,\n`profile_unavailable` or `internal_error`.\n","example":"invalid_request","uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"suspended":{"title":"suspended","value":{"error":{"code":"payment_required","message":"Nylon Studio is beyond your free allowance and your subscription is not active. Restart billing to publish through them again."}}}},"exampleType":"examples"}},"exampleType":"examples"},"34f036a1-4a41-41c1-bd01-4d84103a406a":{"description":"Too many requests for this API key. Reads allow 120 requests a minute;\npublishing endpoints allow 30, because each one costs real upstream\ncalls. The limit is per key, not per IP.\n","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer","example":47}},"RateLimit-Limit":{"description":"Requests allowed in the current window.","schema":{"type":"integer","example":120}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer","example":119}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer","example":47}}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"The stable identifier to branch on.","enum":["invalid_request","unauthorized","payment_required","forbidden","not_found","conflict","rate_limited","unsupported","publish_failed","internal_error"],"example":"unauthorized","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Written for humans. Do not match on it.","example":"A valid Nylon API key is required.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Present when the failure has a per-field or per-network breakdown.","items":{"type":"object","required":["message"],"properties":{"message":{"type":"string","example":"Instagram requires at least 1 media item — text-only posts are not supported.","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"},"field":{"type":"string","description":"The request field the problem is about.","example":"profile_ids","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"network":{"type":"string","description":"The network the problem is about.","example":"instagram","uniqueKey":"error.details.items.[INDEX].network","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable identifier for this problem. On a per-network\ndetail this is a publishing code: `invalid_request`,\n`unsupported`, `media_error`, `reauthentication_required`,\n`rejected_by_network`, `network_error`, `timeout`,\n`profile_unavailable` or `internal_error`.\n","example":"invalid_request","uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"throttled":{"title":"throttled","value":{"error":{"code":"rate_limited","message":"Too many requests. Retry after the window resets."}}}},"exampleType":"examples"}},"exampleType":"examples"},"10f796e6-17cd-42c5-8b43-a336f9159143":{"description":"Nylon encountered an unexpected error.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"The stable identifier to branch on.","enum":["invalid_request","unauthorized","payment_required","forbidden","not_found","conflict","rate_limited","unsupported","publish_failed","internal_error"],"example":"unauthorized","isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","description":"Written for humans. Do not match on it.","example":"A valid Nylon API key is required.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"type":"array","description":"Present when the failure has a per-field or per-network breakdown.","items":{"type":"object","required":["message"],"properties":{"message":{"type":"string","example":"Instagram requires at least 1 media item — text-only posts are not supported.","isRequired":true,"uniqueKey":"error.details.items.[INDEX].message","typeLabel":"string"},"field":{"type":"string","description":"The request field the problem is about.","example":"profile_ids","uniqueKey":"error.details.items.[INDEX].field","typeLabel":"string"},"network":{"type":"string","description":"The network the problem is about.","example":"instagram","uniqueKey":"error.details.items.[INDEX].network","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable identifier for this problem. On a per-network\ndetail this is a publishing code: `invalid_request`,\n`unsupported`, `media_error`, `reauthentication_required`,\n`rejected_by_network`, `network_error`, `timeout`,\n`profile_unavailable` or `internal_error`.\n","example":"invalid_request","uniqueKey":"error.details.items.[INDEX].code","typeLabel":"string"}},"uniqueKey":"error.details.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.details","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"unauthorized","message":"A valid Nylon API key is required.","details":[{"message":"Instagram requires at least 1 media item — text-only posts are not supported.","field":"profile_ids","network":"instagram","code":"invalid_request"}]}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"4a364daf-05fe-4010-8757-60e84043d0f6":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Nylon API key","description":"An API key beginning with `nylon_live_`.","scopes":[]}}},"servers":{"7e3142f8-7813-4409-b324-6875bf414bdf":{"url":"https://api.nylon.dev","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"Nylon API key","description":"An API key beginning with `nylon_live_`.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key beginning with `nylon_live_`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"nylon","siteName":"Nylon API Docs","title":"Import a connection - Nylon API Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-27T22:05:51.835Z","originalFileLocation":"api-reference/connections/import-a-connection.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connects a Facebook Page or Instagram account from an access token you already hold, without sending the customer through an authorization screen again. This is for one situation: a platform moving existing connections onto Nylon. POST /v1/connections is the normal way in, and it asks a human to approve, because that is the only way a token can be granted. Use this only for tokens that were already granted to the Meta app Nylon is configured with — your own, under Platform keys. The token is verified against Meta before anything is stored, so a stale one is refused here rather than at the first publish. Re-running an import refreshes the connection instead of duplicating it.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Nylon API Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nylon/qBZVvcq9uKPk9NJK/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/nylon/qBZVvcq9uKPk9NJK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nylon/qBZVvcq9uKPk9NJK/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nylon/qBZVvcq9uKPk9NJK/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nylon/qBZVvcq9uKPk9NJK/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nylon/qBZVvcq9uKPk9NJK/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nylon/qBZVvcq9uKPk9NJK/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nylon/qBZVvcq9uKPk9NJK/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nylon/qBZVvcq9uKPk9NJK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Import a connection - Nylon API Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connects a Facebook Page or Instagram account from an access token you already hold, without sending the customer through an authorization screen again. This is for one situation: a platform moving existing connections onto Nylon. POST /v1/connections is the normal way in, and it asks a human to approve, because that is the only way a token can be granted. Use this only for tokens that were already granted to the Meta app Nylon is configured with — your own, under Platform keys. The token is verified against Meta before anything is stored, so a stale one is refused here rather than at the first publish. Re-running an import refreshes the connection instead of duplicating it.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nylon API Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.nylon.dev/api-reference/connections/import-a-connection\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nylon.mintlify.site/_mintlify/api/og/v2?division=Connections\u0026amp;title=Import+a+connection\u0026amp;description=Connects+a+Facebook+Page+or+Instagram+account+from+an+access+token+you%0Aalready+hold%2C+without+sending+the+customer+through+an+authorization%0Ascreen+again.%0A%0AThis+i\u0026amp;theme=b05593bd5939955c58560eb1\u0026amp;signature=3dcb9eb32080ee6383f9a4b92a41c0efb0c1f8a876c91432fc35559b314b5528\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Import a connection - Nylon API Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connects a Facebook Page or Instagram account from an access token you already hold, without sending the customer through an authorization screen again. This is for one situation: a platform moving existing connections onto Nylon. POST /v1/connections is the normal way in, and it asks a human to approve, because that is the only way a token can be granted. Use this only for tokens that were already granted to the Meta app Nylon is configured with — your own, under Platform keys. The token is verified against Meta before anything is stored, so a stale one is refused here rather than at the first publish. Re-running an import refreshes the connection instead of duplicating it.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nylon.mintlify.site/_mintlify/api/og/v2?division=Connections\u0026amp;title=Import+a+connection\u0026amp;description=Connects+a+Facebook+Page+or+Instagram+account+from+an+access+token+you%0Aalready+hold%2C+without+sending+the+customer+through+an+authorization%0Ascreen+again.%0A%0AThis+i\u0026amp;theme=b05593bd5939955c58560eb1\u0026amp;signature=3dcb9eb32080ee6383f9a4b92a41c0efb0c1f8a876c91432fc35559b314b5528\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/nylon/qBZVvcq9uKPk9NJK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nylon API Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#357adf\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.nylon.dev/api-reference/connections/import-a-connection\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/connections/import-a-connection.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.nylon.dev/#organization\",\"name\":\"Nylon API Docs\",\"url\":\"https://docs.nylon.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nylon/8sDWPpZI53wlGMBT/images/nylon-logo.svg?fit=max\u0026auto=format\u0026n=8sDWPpZI53wlGMBT\u0026q=85\u0026s=1eb1edf70a217092111a28527249906b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.nylon.dev#website\",\"name\":\"Nylon API Docs\",\"url\":\"https://docs.nylon.dev\",\"publisher\":{\"@id\":\"https://docs.nylon.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.nylon.dev/api-reference/connections/import-a-connection#webpage\",\"url\":\"https://docs.nylon.dev/api-reference/connections/import-a-connection\",\"name\":\"Import a connection\",\"description\":\"Connects a Facebook Page or Instagram account from an access token you already hold, without sending the customer through an authorization screen again. This is for one situation: a platform moving existing connections onto Nylon. POST /v1/connections is the normal way in, and it asks a human to approve, because that is the only way a token can be granted. Use this only for tokens that were already granted to the Meta app Nylon is configured with — your own, under Platform keys. The token is verified against Meta before anything is stored, so a stale one is refused here rather than at the first publish. Re-running an import refreshes the connection instead of duplicating it.\",\"dateModified\":\"2026-09-27T22:05:51.835Z\",\"isPartOf\":{\"@id\":\"https://docs.nylon.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.nylon.dev/api-reference/connections/import-a-connection#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.nylon.dev/api-reference/connections/import-a-connection#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.nylon.dev/api-reference/list-posts\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connections\",\"item\":\"https://docs.nylon.dev/api-reference/list-connections\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Import a connection\",\"item\":\"https://docs.nylon.dev/api-reference/connections/import-a-connection\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.nylon.dev/api-reference/connections/import-a-connection#apireference\",\"headline\":\"Import a connection\",\"name\":\"Import a connection\",\"description\":\"Connects a Facebook Page or Instagram account from an access token you already hold, without sending the customer through an authorization screen again. This is for one situation: a platform moving existing connections onto Nylon. POST /v1/connections is the normal way in, and it asks a human to approve, because that is the only way a token can be granted. Use this only for tokens that were already granted to the Meta app Nylon is configured with — your own, under Platform keys. The token is verified against Meta before anything is stored, so a stale one is refused here rather than at the first publish. Re-running an import refreshes the connection instead of duplicating it.\",\"url\":\"https://docs.nylon.dev/api-reference/connections/import-a-connection\",\"mainEntityOfPage\":{\"@id\":\"https://docs.nylon.dev/api-reference/connections/import-a-connection#webpage\"},\"dateModified\":\"2026-09-27T22:05:51.835Z\",\"publisher\":{\"@id\":\"https://docs.nylon.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.nylon.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Nylon API Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Nylon API Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/connections/import-a-connection.md","siteName":"Nylon API Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/welcome"}]},{"tab":"API reference","groups":[{"group":"Overview","icon":"list-tree","pages":[{"title":"API reference","icon":"list-tree","href":"/api-reference"}]},{"group":"Endpoints","icon":"code","pages":[{"group":"Posts","pages":[{"title":"List posts","deprecated":null,"version":null,"sidebarTitle":"List posts","openapi":"/openapi.yaml get /v1/posts","href":"/api-reference/list-posts"},{"title":"Create a post","deprecated":null,"version":null,"sidebarTitle":"Create post","openapi":"/openapi.yaml post /v1/posts","href":"/api-reference/create-post"},{"title":"Retrieve a post","deprecated":null,"version":null,"sidebarTitle":"Get post","openapi":"/openapi.yaml get /v1/posts/{postId}","href":"/api-reference/get-post"},{"title":"Cancel a scheduled post","deprecated":null,"version":null,"sidebarTitle":"Cancel post","openapi":"/openapi.yaml delete /v1/posts/{postId}","href":"/api-reference/cancel-post"},{"title":"Update a scheduled post","deprecated":null,"version":null,"sidebarTitle":"Update post","openapi":"/openapi.yaml patch /v1/posts/{postId}","href":"/api-reference/update-post"},{"title":"Retry failed targets","deprecated":null,"version":null,"sidebarTitle":"Retry post","openapi":"/openapi.yaml post /v1/posts/{postId}/retry","href":"/api-reference/retry-post"},{"title":"Validate a post","deprecated":null,"version":null,"sidebarTitle":"Validate post","openapi":"/openapi.yaml post /v1/validate","href":"/api-reference/validate-post"}]},{"group":"Profiles","pages":[{"title":"List connected profiles","deprecated":null,"version":null,"sidebarTitle":"List profiles","openapi":"/openapi.yaml get /v1/profiles","href":"/api-reference/list-profiles"},{"title":"Retrieve a profile","deprecated":null,"version":null,"sidebarTitle":"Get profile","openapi":"/openapi.yaml get /v1/profiles/{profileId}","href":"/api-reference/get-profile"},{"title":"Disconnect a profile","deprecated":null,"version":null,"sidebarTitle":"Disconnect profile","openapi":"/openapi.yaml delete /v1/profiles/{profileId}","href":"/api-reference/disconnect-profile"},{"title":"List Pinterest boards","deprecated":null,"version":null,"sidebarTitle":"List profile boards","openapi":"/openapi.yaml get /v1/profiles/{profileId}/boards","href":"/api-reference/list-profile-boards"}]},{"group":"Connections","pages":[{"title":"List connectable networks","deprecated":null,"version":null,"sidebarTitle":"List connections","openapi":"/openapi.yaml get /v1/connections","href":"/api-reference/list-connections"},{"title":"Start a connection","description":"Get the URL to send a customer to so they can connect an account.","deprecated":null,"version":null,"sidebarTitle":"Create connection","openapi":"/openapi.yaml post /v1/connections","href":"/api-reference/create-connection"},{"title":"Import a connection","deprecated":null,"version":null,"openapi":"/openapi.yaml post /v1/connections/import","href":"/api-reference/connections/import-a-connection"}]},{"group":"Networks","pages":[{"title":"List network capabilities","description":"Character limits, media specs, post types and options for every network.","deprecated":null,"version":null,"sidebarTitle":"List networks","openapi":"/openapi.yaml get /v1/networks","href":"/api-reference/list-networks"}]},{"group":"Webhooks","pages":[{"title":"List webhook endpoints","deprecated":null,"version":null,"sidebarTitle":"List webhooks","openapi":"/openapi.yaml get /v1/webhooks","href":"/api-reference/list-webhooks"},{"title":"Register a webhook endpoint","deprecated":null,"version":null,"sidebarTitle":"Create webhook","openapi":"/openapi.yaml post /v1/webhooks","href":"/api-reference/create-webhook"},{"title":"Retrieve a webhook endpoint","deprecated":null,"version":null,"sidebarTitle":"Get webhook","openapi":"/openapi.yaml get /v1/webhooks/{webhookId}","href":"/api-reference/get-webhook"},{"title":"Delete a webhook endpoint","deprecated":null,"version":null,"sidebarTitle":"Delete webhook","openapi":"/openapi.yaml delete /v1/webhooks/{webhookId}","href":"/api-reference/delete-webhook"},{"title":"Update a webhook endpoint","deprecated":null,"version":null,"sidebarTitle":"Update webhook","openapi":"/openapi.yaml patch /v1/webhooks/{webhookId}","href":"/api-reference/update-webhook"},{"title":"Rotate the signing secret","deprecated":null,"version":null,"sidebarTitle":"Rotate webhook secret","openapi":"/openapi.yaml post /v1/webhooks/{webhookId}/secret","href":"/api-reference/rotate-webhook-secret"},{"title":"Send a test event","deprecated":null,"version":null,"sidebarTitle":"Test webhook","openapi":"/openapi.yaml post /v1/webhooks/{webhookId}/test","href":"/api-reference/test-webhook"},{"title":"List deliveries","deprecated":null,"version":null,"sidebarTitle":"List webhook deliveries","openapi":"/openapi.yaml get /v1/webhooks/{webhookId}/deliveries","href":"/api-reference/list-webhook-deliveries"}]},{"group":"Media","pages":[{"title":"List hosted media","deprecated":null,"version":null,"sidebarTitle":"List media","openapi":"/openapi.yaml get /v1/media","href":"/api-reference/list-media"},{"title":"Host a file","deprecated":null,"version":null,"sidebarTitle":"Create media","openapi":"/openapi.yaml post /v1/media","href":"/api-reference/create-media"},{"title":"Start a large upload","deprecated":null,"version":null,"sidebarTitle":"Create media upload","openapi":"/openapi.yaml post /v1/media/uploads","href":"/api-reference/create-media-upload"}]},{"group":"Inbox","pages":[{"title":"List conversations","deprecated":null,"version":null,"sidebarTitle":"List conversations","openapi":"/openapi.yaml get /v1/inbox/conversations","href":"/api-reference/list-conversations"},{"title":"Retrieve a conversation","deprecated":null,"version":null,"sidebarTitle":"Get conversation","openapi":"/openapi.yaml get /v1/inbox/conversations/{conversationId}","href":"/api-reference/get-conversation"},{"title":"List messages","deprecated":null,"version":null,"sidebarTitle":"List conversation messages","openapi":"/openapi.yaml get /v1/inbox/conversations/{conversationId}/messages","href":"/api-reference/list-conversation-messages"},{"title":"Reply in a conversation","deprecated":null,"version":null,"sidebarTitle":"Reply to conversation","openapi":"/openapi.yaml post /v1/inbox/conversations/{conversationId}/messages","href":"/api-reference/reply-to-conversation"},{"title":"Mark a conversation read","deprecated":null,"version":null,"sidebarTitle":"Mark conversation read","openapi":"/openapi.yaml post /v1/inbox/conversations/{conversationId}/read","href":"/api-reference/mark-conversation-read"}]}]}]},{"tab":"MCP server","pages":[{"title":"MCP server","href":"/mcp/get-started"}]},{"tab":"Help center","pages":[{"title":"Help center","href":"/help"}]}]},"basePath":"","title":"Import a connection - Nylon API Docs","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-5zXlUUV6.js","snippetPresets-D3m2eL-0.js","utils-u8TSWPiZ.js","style-to-object-BY3JEAdk.js","utils-D3TDKJCH.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Om0Y4Ijd.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Cyl7LOol.js","_Uint8Array-BuOv0f5_.js","isObject-FP1Yky1u.js","Page-DdEXfHxg.js","api-description-markdown-DDasI_tu.js","DynamicMarkdown-DoPsKgYC.js","CodeSnippet-CuGpPhIN.js","use-playground-group-access-DYZiRN3l.js","SectionHeading-CKObOTcn.js","ApiExamples-BnqLE2Kf.js","usePlaygroundInputsStore-DhQKVH9n.js","shallow-BOCfJNQU.js","isEqual-BrbSa25D.js","CodeSnippets-DUGBlB-S.js","MethodPill-D_DqPuJw.js","getPastedJson-DWfa7n0M.js","Check2Icon-CEquKboc.js","axios-CsQoIw0U.js","Markdown-CIbHOmUi.js","AssistantPageLink-C0oSAXp0.js","dist-Bp7AI3M8.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}