Hierarchy

  • MiroApi

Constructors

Properties

Methods

attachTagToItem call copyBoard createAppCardItem createBoard createCardItem createConnector createDocumentItemUsingUrl createEmbedItem createFrameItem createImageItemUsingUrl createShapeItem createStickyNoteItem createTag createTextItem deleteAppCardItem deleteBoard deleteCardItem deleteConnector deleteDocumentItem deleteEmbedItem deleteFrameItem deleteImageItem deleteItem deleteShapeItem deleteStickyNoteItem deleteTag deleteTextItem enterpriseBoardExportJobResults enterpriseBoardExportJobStatus enterpriseCreateBoardExport enterpriseCreateTeam enterpriseDataclassificationBoardGet enterpriseDataclassificationBoardSet enterpriseDataclassificationOrganizationSettingsGet enterpriseDataclassificationTeamBoardsBulk enterpriseDataclassificationTeamSettingsGet enterpriseDataclassificationTeamSettingsSet enterpriseDeleteTeam enterpriseDeleteTeamMember enterpriseGetDefaultTeamSettings enterpriseGetOrganization enterpriseGetOrganizationMember enterpriseGetOrganizationMembers enterpriseGetTeam enterpriseGetTeamMember enterpriseGetTeamMembers enterpriseGetTeamSettings enterpriseGetTeams enterpriseInviteTeamMember enterpriseUpdateTeam enterpriseUpdateTeamMember enterpriseUpdateTeamSettings getAppCardItem getBoardMembers getBoards getCardItem getConnector getConnectors getDocumentItem getEmbedItem getFrameItem getImageItem getItems getItemsByTag getItemsWithinFrame getShapeItem getSpecificBoard getSpecificBoardMember getSpecificItem getStickyNoteItem getTag getTagsFromBoard getTagsFromItem getTextItem removeBoardMember removeTagFromItem revokeToken shareBoard tokenInfo updateAppCardItem updateBoard updateBoardMember updateCardItem updateConnector updateDocumentItemUsingUrl updateEmbedItem updateFrameItem updateImageItemUsingUrl updateItemPositionOrParent updateShapeItem updateStickyNoteItem updateTag updateTextItem

Constructors

  • Parameters

    • accessToken: string | (() => Promise<string>)
    • basePath: string = defaultBasePath
    • Optional logger: Logger
    • Optional httpTimeout: number

    Returns MiroApi

Properties

accessToken: string | (() => Promise<string>)
basePath: string
httpTimeout?: number
logger?: Logger

Methods

  • Attach an existing tag to the specified item. Card and sticky note items can have up to 8 tags.

    Required scope

    boards:write

    Rate limiting

    Level 1

    Summary

    Attach tag to item

    Parameters

    Returns Promise<{
        body: object;
        response: Response;
    }>

  • Parameters

    • method: string
    • url: string
    • Optional body: string | FormData

    Returns Promise<{
        body: unknown;
        response: Response;
    }>

  • Summary

    Delete board

    Parameters

    Returns Promise<{
        body: object;
        response: Response;
    }>

  • Deletes the specified tag from the board. The tag is also removed from all cards and sticky notes on the board.

    Required scope

    boards:write

    Rate limiting

    Level 1

    Summary

    Delete tag

    Parameters

    Returns Promise<{
        body: object;
        response: Response;
    }>

  • Retrieves the result of the board export job. The response provides more information about the board export job, such as the S3 link to the files created.

    Required scope

    boards:read

    Rate limiting

    Level 4

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Get results for board export job

    Parameters

    • orgId: string

      Unique identifier of the organization.

    • jobId: string

      Unique identifier of the job.

    Returns Promise<{
        body: BoardExportResult;
        response: Response;
    }>

  • Retrieves the status of the board export job.

    Required scope

    boards:read

    Rate limiting

    Level 4

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Get board export job status

    Parameters

    • orgId: string

      Unique identifier of the organization.

    • jobId: string

      Unique identifier of the board export job.

    Returns Promise<{
        body: BoardExportJobStatus;
        response: Response;
    }>

  • Creates an export job for one or more boards.

    Required scope

    boards:read

    Rate limiting

    Level 4

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Create board export job

    Parameters

    • orgId: string

      Unique identifier of the organization.

    • requestId: string

      Unique identifier of the board export job.

    • createBoardExportRequest: CreateBoardExportRequest

    Returns Promise<{
        body: BoardExportJobId;
        response: Response;
    }>

  • Creates a new team in an existing organization.

    Required scope

    organizations:teams:write

    Rate limiting

    Level 1

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Create team

    Parameters

    Returns Promise<{
        body: Team;
        response: Response;
    }>

  • Retrieves board classification for a board.

    Required scope

    boards:read

    Rate limiting

    Level 2

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Get board classification

    Parameters

    • orgId: string

      id of the organization

    • teamId: string

      id of the team

    • boardId: string

      Unique identifier of the board that you want to retrieve.

    Returns Promise<{
        body: BoardDataClassificationLabel;
        response: Response;
    }>

  • Updates board classification for an existing board.

    Required scope

    boards:write

    Rate limiting

    Level 2

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Update board classification

    Parameters

    • orgId: string

      id of the organization

    • teamId: string

      id of the team

    • boardId: string

      Unique identifier of the board that you want to update.

    • dataClassificationLabelId: DataClassificationLabelId

    Returns Promise<{
        body: BoardDataClassificationLabel;
        response: Response;
    }>

  • Retrieves board classification settings for an existing organization.

    Required scope

    organizations:read

    Rate limiting

    Level 2

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Get organization settings

    Parameters

    • orgId: string

      id of the organization

    Returns Promise<{
        body: DataClassificationOrganizationSettings;
        response: Response;
    }>

  • Retrieves board classification settings for an existing team.

    Required scope

    organizations:teams:read

    Rate limiting

    Level 2

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Get team settings

    Parameters

    • orgId: string

      id of the organization

    • teamId: string

      id of the team

    Returns Promise<{
        body: DataClassificationTeamSettings;
        response: Response;
    }>

  • Updates board classification settings for an existing team.

    Required scope

    organizations:teams:write

    Rate limiting

    Level 2

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Update team settings

    Parameters

    Returns Promise<{
        body: DataClassificationTeamSettings;
        response: Response;
    }>

  • Deletes an existing team.

    Required scope

    organizations:teams:write

    Rate limiting

    Level 4

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Delete team

    Parameters

    • orgId: string

      The id of an Organization.

    • teamId: string

      The id of a Team.

    Returns Promise<{
        body?: any;
        response: Response;
    }>

  • Deletes team member from team by id.

    Required scope

    organizations:teams:write

    Rate limiting

    Level 1

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Delete team member from team

    Parameters

    • orgId: string

      The id of an Organization.

    • teamId: string

      The id of a Team.

    • memberId: string

      The id of a Team member.

    Returns Promise<{
        body?: any;
        response: Response;
    }>

  • Retrieves default team settings of an existing organization.

    Required scope

    organizations:teams:read

    Rate limiting

    Level 1

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Get default team settings

    Parameters

    • orgId: string

      The id of an Organization.

    Returns Promise<{
        body: TeamSettings;
        response: Response;
    }>

  • Retrieves organization information.

    Required scope

    organizations:read

    Rate limiting

    Level 3

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Get organization info

    Parameters

    • orgId: string

      id of the organization

    Returns Promise<{
        body: Organization;
        response: Response;
    }>

  • Retrieves organization member information for an existing organization.

    Required scope

    organizations:read

    Rate limiting

    Level 3

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Get organization member

    Parameters

    • orgId: string

      id of the organization

    • memberId: string

      id of the organization member

    Returns Promise<{
        body: OrganizationMember;
        response: Response;
    }>

  • Retrieves organization members based on the organization ID and the cursor, or based on the user emails provided in the request.

    Required scope

    organizations:read

    Rate limiting

    Level 3

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Get organization members

    Parameters

    • orgId: string

      id of the organization

    • Optional query: {
          active?: boolean;
          cursor?: string;
          emails?: string;
          license?: "unknown" | "full" | "occasional" | "free" | "free_restricted" | "full_trial";
          limit?: number;
          role?: "unknown" | "organization_internal_admin" | "organization_internal_user" | "organization_external_user" | "organization_team_guest_user";
      }
      • Optional active?: boolean
      • Optional cursor?: string
      • Optional emails?: string
      • Optional license?: "unknown" | "full" | "occasional" | "free" | "free_restricted" | "full_trial"
      • Optional limit?: number
      • Optional role?: "unknown" | "organization_internal_admin" | "organization_internal_user" | "organization_external_user" | "organization_team_guest_user"

    Returns Promise<{
        body: EnterpriseGetOrganizationMembers200Response;
        response: Response;
    }>

  • Retrieves team information for an existing team.

    Required scope

    organizations:teams:read

    Rate limiting

    Level 1

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Get team

    Parameters

    • orgId: string

      The id of an Organization.

    • teamId: string

      The id of a Team.

    Returns Promise<{
        body: Team;
        response: Response;
    }>

  • Retrieves team member by id.

    Required scope

    organizations:teams:read

    Rate limiting

    Level 1

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Get team member

    Parameters

    • orgId: string

      The id of an Organization.

    • teamId: string

      The id of a Team.

    • memberId: string

      The id of a Team member.

    Returns Promise<{
        body: TeamMember;
        response: Response;
    }>

  • Retrieves team members by cursor.

    Required scope

    organizations:teams:read

    Rate limiting

    Level 2

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    List team members

    Parameters

    • orgId: string

      The id of an Organization.

    • teamId: string

      The id of a Team.

    • Optional query: {
          cursor?: string;
          filterQuery?: string;
          limit?: number;
      }
      • Optional cursor?: string
      • Optional filterQuery?: string
      • Optional limit?: number

    Returns Promise<{
        body: TeamMember[];
        response: Response;
    }>

  • Retrieves team settings of an existing team.

    Required scope

    organizations:teams:read

    Rate limiting

    Level 1

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Get team settings

    Parameters

    • orgId: string

      The id of an Organization.

    • teamId: string

      The id of a Team.

    Returns Promise<{
        body: TeamSettings;
        response: Response;
    }>

  • Retrieves list of teams in an existing organization.

    Required scope

    organizations:teams:read

    Rate limiting

    Level 1

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    List teams

    Parameters

    • orgId: string

      The id of an Organization.

    • Optional query: {
          cursor?: string;
          filterQuery?: string;
          limit?: number;
      }
      • Optional cursor?: string
      • Optional filterQuery?: string
      • Optional limit?: number

    Returns Promise<{
        body: Team[];
        response: Response;
    }>

  • Invites a new member to an existing team.

    Required scope

    organizations:teams:write

    Rate limiting

    Level 2

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Invite team members

    Parameters

    • orgId: string

      The id of an Organization.

    • teamId: string

      The id of a Team.

    • teamMemberInvite: TeamMemberInvite

    Returns Promise<{
        body: TeamMember;
        response: Response;
    }>

  • Updates an existing team.

    Required scope

    organizations:teams:write

    Rate limiting

    Level 1

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Update team

    Parameters

    • orgId: string

      The id of an Organization.

    • teamId: string

      The id of a Team.

    • teamChanges: TeamChanges

    Returns Promise<{
        body: Team;
        response: Response;
    }>

  • Updates team member role in team by id.

    Required scope

    organizations:teams:write

    Rate limiting

    Level 2

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Update team member

    Parameters

    • orgId: string

      The id of an Organization.

    • teamId: string

      The id of a Team.

    • memberId: string

      The id of a Team member.

    • teamMemberChanges: TeamMemberChanges

    Returns Promise<{
        body: TeamMember;
        response: Response;
    }>

  • Updates team settings of an existing team.

    Required scope

    organizations:teams:write

    Rate limiting

    Level 2

    Enterprise only

    This API is available only for <a target=_blank href="/reference/api-reference#enterprise-plan">Enterprise plan users. You can only use this endpoint if you have the role of a Company Admin.

    Summary

    Update team settings

    Parameters

    • orgId: string

      The id of an Organization.

    • teamId: string

      The id of a Team.

    • teamSettingsChanges: TeamSettingsChanges

    Returns Promise<{
        body: TeamSettings;
        response: Response;
    }>

  • Retrieves a pageable list of members for a board.

    Required scope

    boards:read

    Rate limiting

    Level 1

    Summary

    Get all board members

    Parameters

    • boardId: string

      Unique identifier (ID) of the board to which the board member belongs.

    • Optional query: {
          limit?: string;
          offset?: string;
      }
      • Optional limit?: string
      • Optional offset?: string

    Returns Promise<{
        body: BoardMembersPagedResponse;
        response: Response;
    }>

  • Retrieves a list of boards that match the search criteria provided in the request. If you are an Enterprise customer and a Company Admin, you can retrieve all boards, including all private boards (boards that haven't been specifically shared with you) by enabling Content Admin permissions. To enable Content Admin permissions, see Content Admin permissions for Company Admins. Note that you only get results instantaneously when you filter by team_id. If you use any other filter, you need to give a few seconds for the indexing of newly created boards before retrieving boards.

    Required scope

    boards:read

    Rate limiting

    Level 1

    Summary

    Get boards

    Parameters

    • Optional query: {
          limit?: string;
          offset?: string;
          owner?: string;
          query?: string;
          sort?: "default" | "last_modified" | "last_opened" | "last_created" | "alphabetically";
          teamId?: string;
      }
      • Optional limit?: string
      • Optional offset?: string
      • Optional owner?: string
      • Optional query?: string
      • Optional sort?: "default" | "last_modified" | "last_opened" | "last_created" | "alphabetically"
      • Optional teamId?: string

    Returns Promise<{
        body: BoardsPagedResponse;
        response: Response;
    }>

  • Retrieves a list of connectors for a specific board. This method returns results using a cursor-based approach. A cursor-paginated method returns a portion of the total set of results based on the limit specified and a cursor that points to the next portion of the results. To retrieve the next portion of the collection, on your next call to the same method, set the cursor parameter equal to the cursor value you received in the response of the previous request. For example, if you set the limit query parameter to 10 and the board contains 20 objects, the first call will return information about the first 10 objects in the response along with a cursor parameter and value. In this example, let's say the cursor parameter value returned in the response is foo. If you want to retrieve the next set of objects, on your next call to the same method, set the cursor parameter value to foo.

    Required scope

    boards:read

    Rate limiting

    Level 2

    Summary

    Get connectors

    Parameters

    • boardId: string

      Unique identifier (ID) of the board from which you want to retrieve a list of connectors.

    • Optional query: {
          cursor?: string;
          limit?: string;
      }
      • Optional cursor?: string
      • Optional limit?: string

    Returns Promise<{
        body: ConnectorsCursorPaged;
        response: Response;
    }>

  • Retrieves a list of items for a specific board. You can retrieve all items on the board, a list of child items inside a parent item, or a list of specific types of items by specifying URL query parameter values. This method returns results using a cursor-based approach. A cursor-paginated method returns a portion of the total set of results based on the limit specified and a cursor that points to the next portion of the results. To retrieve the next portion of the collection, on your next call to the same method, set the cursor parameter equal to the cursor value you received in the response of the previous request. For example, if you set the limit query parameter to 10 and the board contains 20 objects, the first call will return information about the first 10 objects in the response along with a cursor parameter and value. In this example, let's say the cursor parameter value returned in the response is foo. If you want to retrieve the next set of objects, on your next call to the same method, set the cursor parameter value to foo.

    Required scope

    boards:read

    Rate limiting

    Level 2

    Summary

    Get items on board

    Parameters

    • boardId: string

      Unique identifier (ID) of the board for which you want to retrieve the list of available items.

    • Optional query: {
          cursor?: string;
          limit?: string;
          type?: string;
      }
      • Optional cursor?: string
      • Optional limit?: string
      • Optional type?: string

    Returns Promise<{
        body: GenericItemCursorPaged;
        response: Response;
    }>

  • Retrieves all the items that have the specified tag.

    Required scope

    boards:read

    Rate limiting

    Level 1

    Summary

    Get items by tag

    Parameters

    Returns Promise<{
        body: ItemPagedResponse;
        response: Response;
    }>

  • Retrieves a list of items within a specific frame. A frame is a parent item and all items within a frame are child items. This method returns results using a cursor-based approach. A cursor-paginated method returns a portion of the total set of results based on the limit specified and a cursor that points to the next portion of the results. To retrieve the next portion of the collection, on your next call to the same method, set the cursor parameter equal to the cursor value you received in the response of the previous request. For example, if you set the limit query parameter to 10 and the board contains 20 objects, the first call will return information about the first 10 objects in the response along with a cursor parameter and value. In this example, let's say the cursor parameter value returned in the response is foo. If you want to retrieve the next set of objects, on your next call to the same method, set the cursor parameter value to foo.

    Required scope

    boards:read

    Rate limiting

    Level 2

    Summary

    Get items within frame

    Parameters

    • boardIdPlatformContainers: string

      Unique identifier (ID) of the board that contains the frame for which you want to retrieve the list of available items.

    • parentItemId: string

      ID of the frame for which you want to retrieve the list of available items.

    • Optional query: {
          cursor?: string;
          limit?: string;
          type?: string;
      }
      • Optional cursor?: string
      • Optional limit?: string
      • Optional type?: string

    Returns Promise<{
        body: GenericItemCursorPaged;
        response: Response;
    }>

  • Retrieves information for a board member.

    Required scope

    boards:read

    Rate limiting

    Level 1

    Summary

    Get specific board member

    Parameters

    • boardId: string

      Unique identifier (ID) of the board to which the board member belongs.

    • boardMemberId: string

      Unique identifier (ID) of the board member whose role you want to retrieve.

    Returns Promise<{
        body: BoardMemberWithLinks;
        response: Response;
    }>

  • Retrieves all the tags from the specified board.

    Required scope

    boards:read

    Rate limiting

    Level 1

    Summary

    Get tags from board

    Parameters

    • boardId: string

      Unique identifier (ID) of the board whose tags you want to retrieve.

    • Optional query: {
          limit?: string;
          offset?: string;
      }
      • Optional limit?: string
      • Optional offset?: string

    Returns Promise<{
        body: TagsPagedResponse;
        response: Response;
    }>

  • Removes a board member from a board.

    Required scope

    boards:write

    Rate limiting

    Level 2

    Summary

    Remove board member

    Parameters

    • boardId: string

      Unique identifier (ID) of the board from which you want to delete an item.

    • boardMemberId: string

      Unique identifier (ID) of the board member whose role you want to delete.

    Returns Promise<{
        body: object;
        response: Response;
    }>

  • Removes the specified tag from the specified item. The tag still exists on the board.

    Required scope

    boards:write

    Rate limiting

    Level 1

    Summary

    Remove tag from item

    Parameters

    Returns Promise<{
        body: object;
        response: Response;
    }>

  • Revoke the current access token. Revoking an access token means that the access token will no longer work. When an access token is revoked, the refresh token is also revoked and no longer valid. This does not uninstall the application for the user.

    Summary

    Revoke token

    Parameters

    • accessToken: string

      Access token that you want to revoke

    Returns Promise<{
        body?: any;
        response: Response;
    }>

  • Get information about an access token, such as the token type, scopes, team, user, token creation date and time, and the user who created the token.

    Summary

    Get access token information

    Returns Promise<{
        body: TokenInformation;
        response: Response;
    }>