Hey, human!
This is what your agent sees atdocs.example.com/endpoint/post-api-v1-projects-slug-data-sources
HTTP/2 200 OK content-type: text/markdown; charset=utf-8 vary: accept, user-agent x-agent: [ai_agent]
Loading the agent response…
Connect a GitHub repo
Create a new data-source.
What you provide
- Installation id
- Owner
- Repo
- Branch
- Category
- Provideroptional
- Site urloptional: Public URL of the live docs site this repo publishes to. Shown as a Documentation link in the public portal header.
Do this with AI
I want to connect a GitHub repo. Use the Restless API. Read the reference for this operation and follow it exactly: https://build.restless.ai/endpoint/post-api-v1-projects-slug-data-sources.md Authenticate with your API key as a Bearer token in the Authorization header. Then make the request for me and tell me what came back.
Paste this into Claude, Cursor, or any AI assistant and it will do it for you.
POST
https://app.restless.ai/api/v1/projects/{slug}/data-sourcescurl --request POST \
--url https://app.restless.ai/api/v1/projects/slug/data-sources \
--header 'Authorization: Bearer $API_KEY' \
--header 'Content-Type: application/json' \
--data '
{
"installationId": 0,
"owner": "owner",
"repo": "repo",
"branch": "branch",
"category": "documentation",
"provider": "provider",
"siteUrl": "siteUrl"
}
'Path parameters
slugstringrequiredProject slug.
Body
application/jsonrequiredinstallationIdintegerrequiredownerstringrequiredrepostringrequiredbranchstringrequiredcategorystringrequiredproviderstringsiteUrlstringPublic URL of the live docs site this repo publishes to. Shown as a Documentation link in the public portal header.