Agent API v1

외부 맥락을 몇 분 만에 MyInc 워크스페이스로 보내요.

하나의 API 키로 메모, 링크, 마크다운, 파일을 MyInc 워크스페이스에 보낼 수 있어요. 같은 API로 그 맥락을 pages와 drafts로 만들 수 있고, 무엇이든 발행되기 전에는 항상 회원님의 승인을 기다려요.

First request
curl https://myinc.app/api/agent/clips \
  -X POST \
  -H 'Authorization: Bearer tk_your_api_key' \
  -H 'Idempotency-Key: clip-001' \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "주간 인사이트",
    "text": "오늘 리서치에서 남길 만한 최종 답변입니다."
  }'
Clips
POST /api/agent/clips
Ingest
POST /api/agent/ingest
Upload
POST /api/agent/upload
Projects
POST /api/agent/projects

외부 맥락을 워크스페이스로 가져오기

메모·링크·답변 하나 저장

한 번에 하나씩 MyInc 워크스페이스에 clip으로 보내서 AI 팀이 다시 쓸 수 있게 해요.

링크·텍스트·마크다운 배치 ingest

관련 있는 항목들을 한 capture로 묶어 워크스페이스가 나중에 함께 쓰기 쉽게 남겨요.

페이지 생성과 드래프트 만들기

먼저 맥락을 페이지로 정리하고, MyInc에게 드래프트를 만들게 하면 그 결과는 회원님의 승인 대기 상태로 남아요.

프로젝트 생성과 아이템 추가

에이전트에서 프로젝트를 열고, 일이 진행되는 대로 clip·page·draft를 프로젝트 stage에 넣어요.

Quickstart

1

MyInc에 로그인한 뒤 Settings → API keys에서 scoped API 키를 만들어요.

2

모든 요청에 Bearer 토큰으로 키를 전달하고, write 요청에는 Idempotency-Key도 함께 넣어요.

3

먼저 clip 하나 또는 ingest 하나로 시작하고, 그 다음 pages, draft generation, upload, projects로 확장해요.

인증

MyInc Agent API v1은 개인 API 키를 사용해요. Settings → API keys에서 integration별 scoped key를 만들 수 있고, 서버 쪽에서만 보관하며 Bearer 토큰으로 전달해요.

curl https://myinc.app/api/agent/clips \
  -X POST \
  -H 'Authorization: Bearer tk_your_api_key' \
  -H 'Idempotency-Key: clip-001' \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "주간 인사이트",
    "text": "오늘 리서치에서 남길 만한 최종 답변입니다."
  }'
  • clips, ingest, upload, pages, generation, projects 범위별로 scoped key를 만들 수 있어요.
  • 권장 scope 예시: clips:write, ingest:write, upload:write, pages:read, pages:generate, projects:write
  • 키 생성과 revoke는 Settings → API keys에서 할 수 있어요.

크레딧과 리밋

Agent API도 제품과 같은 요금제 제한을 따라요. 별도 agent 전용 quota가 아니라, AI 작업은 같은 credit ledger를 사용해요.

  • POST /api/agent/ingest 는 item별로 AI credits를 차감해요: text 1, markdown 1, url 2
  • POST /api/agent/pages/:id/generate 는 custom 6, template set 15 credits를 사용해요.
  • 프로젝트 생성은 앱과 같은 활성 프로젝트 제한을 그대로 따라요.

Idempotent write

쓰기 요청은 Idempotency-Key를 지원해요. 같은 요청을 같은 키로 다시 보내면 저장된 결과를 반환하고, 다른 body로 같은 키를 재사용하면 409를 반환해요.

curl https://myinc.app/api/agent/projects \
  -X POST \
  -H 'Authorization: Bearer tk_your_api_key' \
  -H 'Idempotency-Key: project-2026-04-launch' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "4월 런치 플랜",
    "template": "goal_milestones"
  }'

핵심 엔드포인트

POST/api/agent/clips

클립 하나 저장

메모, 링크, 저장할 답변 하나를 보낼 때 쓰면 돼요.

{
  "title": "저장할 답변",
  "text": "다시 쓸 가치가 있는 최종 요약입니다.",
  "tags": ["research", "launch"]
}
POST/api/agent/ingest

배치 ingest

텍스트, URL, 마크다운을 한 번에 보내고 같은 capture로 묶어둘 수 있어요.

{
  "items": [
    { "type": "url", "url": "https://example.com/article" },
    { "type": "markdown", "title": "메모", "text": "# 핵심\n- 하나\n- 둘" }
  ]
}
POST/api/agent/upload

파일 업로드

에이전트가 파일 첨부를 보내야 할 때도 같은 Agent API 표면에서 multipart 업로드를 처리할 수 있어요.

curl https://myinc.app/api/agent/upload \
  -H 'Authorization: Bearer tk_your_api_key' \
  -H 'Idempotency-Key: upload-001' \
  -F '[email protected]'
POST/api/agent/pages/:id/generate

페이지에서 드래프트 생성

저장한 clip들을 page로 정리한 뒤, 그 page를 바탕으로 초안을 생성할 때 사용해요.

{
  "mode": "custom",
  "prompt": "이 페이지를 발행 가능한 짧은 브리프로 바꿔주세요."
}
POST/api/agent/projects

프로젝트 생성

이름, 템플릿, 상태를 포함해 외부 에이전트에서 MyInc 프로젝트를 열 수 있어요.

{
  "name": "4월 런치 플랜",
  "template": "goal_milestones",
  "icon": "🚀"
}
POST/api/agent/projects/:id/items

프로젝트 stage에 아이템 추가

에이전트 워크플로에서 clip, page, draft, published 항목을 MyInc 프로젝트 stage에 바로 넣어요.

{
  "stage": "clip",
  "referenceId": "clip_123"
}

공통 응답 형식

Agent API v1은 성공과 실패를 같은 envelope으로 반환해서, 에이전트가 일관되게 처리할 수 있게 해요.

{
  "success": true,
  "data": {
    "id": "clip_123",
    "title": "저장할 답변"
  },
  "error": null
}

Hermes와 자체 에이전트를 위한 구조

Hermes나 직접 만든 에이전트를 MyInc 워크스페이스에 연결해요. clips와 ingest부터 시작하고, AI 팀이 더 많은 일을 맡게 되면 pages, generation, projects를 추가해요.

외부 맥락이 워크스페이스에 도달하는 방식

먼저 clips와 ingest로 캡처

에이전트가 clips와 ingest를 통해 메모, 링크, 마크다운을 그때그때 MyInc 워크스페이스로 보내게 해요.

제품 개요 보기

그 다음 pages와 projects 구성

맥락이 워크스페이스에 들어오면 pages와 drafts를 생성하고 작업을 projects로 정리해요. 모두 회원님의 승인을 기다려요.

제품 개요 보기

엔드포인트별 예제 레퍼런스

각 엔드포인트를 펼치면 request body, response 예제, 추천 사용 맥락을 바로 볼 수 있어요.

POST/api/agent/clips클립 하나 저장
Request body
{
  "title": "저장할 답변",
  "text": "다시 쓸 가치가 있는 최종 요약입니다.",
  "tags": ["research", "launch"]
}
Response
{
  "success": true,
  "data": {
    "id": "clip_123",
    "title": "저장할 답변",
    "text": "다시 쓸 가치가 있는 최종 요약입니다."
  },
  "error": null
}
Notes
  • Hermes나 자체 에이전트에서 가장 먼저 붙이기 좋은 엔드포인트예요.
  • 좋은 답변 하나씩 저장할 때 가장 단순해요.
  • GET /api/agent/clips 는 clips:read 로 목록을 조회해요.
POST/api/agent/ingest배치 ingest
Request body
{
  "items": [
    { "type": "url", "url": "https://example.com/article" },
    { "type": "markdown", "title": "메모", "text": "# 핵심\n- 하나\n- 둘" }
  ]
}
Response
{
  "success": true,
  "data": {
    "captureBatchId": "batch_123",
    "created": [
      { "id": "clip_1", "title": "https://example.com/article", "url": "https://example.com/article" },
      { "id": "clip_2", "title": "메모", "url": null }
    ],
    "failed": []
  },
  "error": null
}
Notes
  • 에이전트가 여러 항목을 한 번에 보낼 때 가장 적합해요.
  • text, url, markdown를 한 요청 안에서 함께 다룰 수 있어요(최대 50개).
  • 이 경로는 item별 AI credits를 차감하고, credit 부족 시 항목별 failed 결과를 반환해요.
POST/api/agent/upload파일 업로드
Request body
curl https://myinc.app/api/agent/upload \
  -H 'Authorization: Bearer tk_your_api_key' \
  -H 'Idempotency-Key: upload-001' \
  -F '[email protected]'
Response
{
  "success": true,
  "data": {
    "id": "clip_upload_123",
    "title": "notes.md"
  },
  "error": null
}
Notes
  • 파일 자체를 보내야 할 때 이 경로를 사용하면 돼요.
  • scoped key와 idempotency도 업로드에 그대로 적용돼요.
  • 내부 웹 전용 upload가 아니라 Agent API facade예요.
POST/api/agent/pages/:id/generate페이지에서 드래프트 생성
Request body
{
  "mode": "custom",
  "prompt": "이 페이지를 발행 가능한 짧은 브리프로 바꿔주세요."
}
Response
{
  "success": true,
  "data": {
    "jobId": "draft_123",
    "type": "page_generation",
    "status": "completed",
    "result": {
      "draftId": "draft_123"
    }
  },
  "error": null
}
Notes
  • 생성된 드래프트는 MyInc 안에서 회원님의 승인 대기 상태로 남고, 자동으로 발행되지 않아요.
  • clips를 먼저 page로 정리한 뒤 호출해요(POST /api/agent/pages, GET /api/agent/pages/:id).
  • GET /api/agent/jobs/:id 로 드래프트 상태를 조회하고, 생성은 앱과 같은 AI credits를 사용해요.
POST/api/agent/projects프로젝트 생성
Request body
{
  "name": "4월 런치 플랜",
  "template": "goal_milestones",
  "icon": "🚀"
}
Response
{
  "success": true,
  "data": {
    "id": "project_123",
    "name": "4월 런치 플랜",
    "template": "goal_milestones"
  },
  "error": null
}
Notes
  • 단일 clip보다 긴 흐름을 운영할 때 적합해요.
  • 템플릿: goal_milestones 또는 pipeline_board.
  • 프로젝트 생성은 앱과 같은 활성 프로젝트 제한을 따라요.
POST/api/agent/projects/:id/items프로젝트 stage에 아이템 추가
Request body
{
  "stage": "clip",
  "referenceId": "clip_123"
}
Response
{
  "success": true,
  "data": {
    "id": "project_item_123",
    "stage": "clip",
    "referenceId": "clip_123"
  },
  "error": null
}
Notes
  • columnId를 생략하면 MyInc가 해당 stage의 첫 workflow column을 자동으로 찾아요.
  • clip이나 page를 만든 직후 프로젝트 플로우에 이어 붙일 때 가장 자연스러워요.

현재 v1 범위

  • 초기 연동용 Private Agent API이며, 완전한 공개 플랫폼 버전은 아직 아니에요.
  • scoped API key, idempotency key, upload facade, project item insert가 v1에 포함돼요.
  • generation job은 기존 MyInc draft generation을 감싼 lightweight job wrapper를 사용해요.

첫 요청 하나만 성공시키고, 그 다음은 AI 팀이 이어가게 하세요.

가장 좋은 첫 연동은 단순해요. 저장할 답변 하나, 링크 하나, 마크다운 메모 하나를 워크스페이스에 보내고, 그 결과를 AI 팀이 승인 대기 상태로 준비하는 pages와 drafts로 이어가세요.

첫 요청 보기제품 개요 보기