AptlyStar

Devin

Autonomous AI software engineer

Instrucciones de uso

Integrate Devin into your workflow. Create sessions to assign coding tasks, send messages to guide active sessions, and retrieve session status and results. Devin autonomously writes, runs, and tests code.

Herramientas

devin_create_session

Create a new Devin session with a prompt. Devin will autonomously work on the task described in the prompt.

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíDevin API key (service user credential starting with cog_)
promptstringSíThe task prompt for Devin to work on
playbookIdstringNoOptional playbook ID to guide the session
maxAcuLimitnumberNoMaximum ACU limit for the session
tagsstringNoComma-separated tags for the session

Salida

ParámetroTipoDescripción
sessionIdstringUnique identifier for the session
urlstringURL to view the session in the Devin UI
statusstringSession status (new, claimed, running, exit, error, suspended, resuming)
statusDetailstringDetailed status (working, waiting_for_user, waiting_for_approval, finished, inactivity, etc.)
titlestringSession title
createdAtnumberUnix timestamp when the session was created
updatedAtnumberUnix timestamp when the session was last updated
acusConsumednumberACUs consumed by the session
tagsjsonTags associated with the session (array of strings)
pullRequestsjsonPull requests created during the session ([{pr_url, pr_state}])
structuredOutputjsonStructured output from the session
playbookIdstringAssociated playbook ID

devin_get_session

Retrieve details of an existing Devin session including status, tags, pull requests, and structured output.

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíDevin API key (service user credential starting with cog_)
sessionIdstringSíThe session ID to retrieve

Salida

ParámetroTipoDescripción
sessionIdstringUnique identifier for the session
urlstringURL to view the session in the Devin UI
statusstringSession status (new, claimed, running, exit, error, suspended, resuming)
statusDetailstringDetailed status (working, waiting_for_user, waiting_for_approval, finished, inactivity, etc.)
titlestringSession title
createdAtnumberUnix timestamp when the session was created
updatedAtnumberUnix timestamp when the session was last updated
acusConsumednumberACUs consumed by the session
tagsjsonTags associated with the session (array of strings)
pullRequestsjsonPull requests created during the session ([{pr_url, pr_state}])
structuredOutputjsonStructured output from the session
playbookIdstringAssociated playbook ID

devin_list_sessions

List Devin sessions in the organization. Returns up to 100 sessions by default.

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíDevin API key (service user credential starting with cog_)
limitnumberNoMaximum number of sessions to return (1-200, default: 100)

Salida

ParámetroTipoDescripción
sessionsarrayList of Devin sessions
↳ sessionIdstringUnique identifier for the session
↳ urlstringURL to view the session
↳ statusstringSession status
↳ statusDetailstringDetailed status
↳ titlestringSession title
↳ createdAtnumberCreation timestamp (Unix)
↳ updatedAtnumberLast updated timestamp (Unix)
↳ tagsjsonSession tags (array of strings)
↳ acusConsumednumberACUs consumed by the session
↳ pullRequestsjsonPull requests created during the session ([{pr_url, pr_state}])
↳ playbookIdstringAssociated playbook ID
↳ isArchivedbooleanWhether the session is archived

devin_send_message

Send a message to a Devin session. If the session is suspended, it will be automatically resumed. Returns the updated session state.

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíDevin API key (service user credential starting with cog_)
sessionIdstringSíThe session ID to send the message to
messagestringSíThe message to send to Devin

Salida

ParámetroTipoDescripción
sessionIdstringUnique identifier for the session
urlstringURL to view the session in the Devin UI
statusstringSession status (new, claimed, running, exit, error, suspended, resuming)
statusDetailstringDetailed status (working, waiting_for_user, waiting_for_approval, finished, inactivity, etc.)
titlestringSession title
createdAtnumberUnix timestamp when the session was created
updatedAtnumberUnix timestamp when the session was last updated
acusConsumednumberACUs consumed by the session
tagsjsonTags associated with the session (array of strings)
pullRequestsjsonPull requests created during the session ([{pr_url, pr_state}])
structuredOutputjsonStructured output from the session
playbookIdstringAssociated playbook ID

devin_list_session_messages

List the messages exchanged in a Devin session, including messages from both the user and Devin.

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíDevin API key (service user credential starting with cog_)
orgIdstringSíDevin organization ID (prefixed with org-)
sessionIdstringSíThe session ID to list messages for
limitnumberNoMaximum number of messages to return (1-200, default: 100)
afterstringNoPagination cursor (endCursor from a previous response) to fetch the next page

Salida

ParámetroTipoDescripción
messagesarrayMessages exchanged in the session
↳ eventIdstringUnique identifier for the message event
↳ sourcestringOrigin of the message (devin or user)
↳ messagestringThe message content
↳ createdAtnumberUnix timestamp when the message was created
endCursorstringPagination cursor for the next page, or null if last page
hasNextPagebooleanWhether more messages are available
totalnumberTotal number of messages, if provided

devin_list_session_attachments

List the files uploaded to or produced by a Devin session.

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíDevin API key (service user credential starting with cog_)
orgIdstringSíDevin organization ID (prefixed with org-)
sessionIdstringSíThe session ID to list attachments for

Salida

ParámetroTipoDescripción
attachmentsarrayAttachments associated with the session
↳ attachmentIdstringUnique identifier for the attachment
↳ namestringAttachment file name
↳ urlstringURL to download the attachment
↳ sourcestringOrigin of the attachment (devin or user)
↳ contentTypestringMIME type of the attachment

devin_get_session_tags

Retrieve the tags currently applied to a Devin session.

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíDevin API key (service user credential starting with cog_)
orgIdstringSíDevin organization ID (prefixed with org-)
sessionIdstringSíThe session ID to retrieve tags for

Salida

ParámetroTipoDescripción
tagsjsonTags applied to the session (array of strings)

devin_append_session_tags

Add tags to a Devin session without removing existing tags (max 50 tags total).

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíDevin API key (service user credential starting with cog_)
orgIdstringSíDevin organization ID (prefixed with org-)
sessionIdstringSíThe session ID to add tags to
tagsstringSíTags to append to the session (comma-separated string or array of strings)

Salida

ParámetroTipoDescripción
tagsjsonUpdated list of tags on the session (array of strings)

devin_replace_session_tags

Replace all tags on a Devin session with a new set of tags (max 50 tags).

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíDevin API key (service user credential starting with cog_)
orgIdstringSíDevin organization ID (prefixed with org-)
sessionIdstringSíThe session ID to replace tags on
tagsstringSíTags that will overwrite the existing tags (comma-separated string or array of strings)

Salida

ParámetroTipoDescripción
tagsjsonUpdated list of tags on the session (array of strings)

devin_archive_session

Archive a Devin session. Archived sessions can still be viewed but cannot be modified or resumed.

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíDevin API key (service user credential starting with cog_)
orgIdstringSíDevin organization ID (prefixed with org-)
sessionIdstringSíThe session ID to archive

Salida

ParámetroTipoDescripción
sessionIdstringUnique identifier for the session
urlstringURL to view the session in the Devin UI
statusstringSession status (new, claimed, running, exit, error, suspended, resuming)
statusDetailstringDetailed status (working, waiting_for_user, waiting_for_approval, finished, inactivity, etc.)
titlestringSession title
createdAtnumberUnix timestamp when the session was created
updatedAtnumberUnix timestamp when the session was last updated
acusConsumednumberACUs consumed by the session
tagsjsonTags associated with the session (array of strings)
pullRequestsjsonPull requests created during the session ([{pr_url, pr_state}])
structuredOutputjsonStructured output from the session
playbookIdstringAssociated playbook ID
isArchivedbooleanWhether the session is archived

devin_terminate_session

Terminate a Devin session. Optionally archive the session instead of permanently terminating it.

Entrada

ParámetroTipoObligatorioDescripción
apiKeystringSíDevin API key (service user credential starting with cog_)
orgIdstringSíDevin organization ID (prefixed with org-)
sessionIdstringSíThe session ID to terminate
archivebooleanNoArchive the session instead of permanently terminating it (default: false)

Salida

ParámetroTipoDescripción
sessionIdstringUnique identifier for the session
urlstringURL to view the session in the Devin UI
statusstringSession status (new, claimed, running, exit, error, suspended, resuming)
statusDetailstringDetailed status (working, waiting_for_user, waiting_for_approval, finished, inactivity, etc.)
titlestringSession title
createdAtnumberUnix timestamp when the session was created
updatedAtnumberUnix timestamp when the session was last updated
acusConsumednumberACUs consumed by the session
tagsjsonTags associated with the session (array of strings)
pullRequestsjsonPull requests created during the session ([{pr_url, pr_state}])
structuredOutputjsonStructured output from the session
playbookIdstringAssociated playbook ID
isArchivedbooleanWhether the session is archived

On this page