Workspaces

This endpoint is used to obtain the list of workspaces the user is a member of.

Workspaces - list

List of all workspaces

GET https://api.asters.ai/external/workspaces

Returns workspaces and collaborators.

Headers

[
    {
        "timezone": {
            "name": "Europe/Rome",
            "value": "UTC+02:00"
        },
        "deleted": false,
        "_id": "64cb61be80375ed9c2088192",
        "name": "Personal",
        "image": {
            "presignedUrl": "https://asters.s3.eu-central-1.amazonaws.com/64cb61be80375ed9c2088190/undefinedSchermata%202023-10-02%20alle%2014.44.06-1696339461916.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA5OA4V6PRMWDFMS4B%2F20240308%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20240308T145105Z&X-Amz-Expires=86400&X-Amz-Signature=168e5e5b1c8ccd73e1c13a10d2aa93fe1f80c0fccdcc55b45b582b7157acec6b&X-Amz-SignedHeaders=host&response-cache-control=No-cache&response-content-disposition=attachment%3B%20filename%3D%2264cb61be80375ed9c2088190%2FundefinedSchermata%202023-10-02%20alle%2014.44.06-1696339461916.png%22",
            "filename": "64cb61be80375ed9c2088190/undefinedSchermata 2023-10-02 alle 14.44.06-1696339461916.png"
        },
        "default": true,
        "user": "64cb61be80375ed9c2088190",
        "updated_at": "2023-08-03T08:13:50.594Z",
        "created_at": "2023-08-03T08:13:50.594Z",
        "roles": [
            {
                "name": "John Appleseed",
                "description": "undefiened",
                "permissions": [
                    "edit_post",
                    "publish_post",
                    "calendar_show_posts",
                    "link_social_account"
                ],
                "_id": "651c166d7ab11929385e7199"
            }
        ],
        "collaborators": [
            { "_id": "651c16867ab11929385e71dc" }
        ],
        "__v": 6,
        "daylightTime": false,
        "notifications": [],
        "notificationsPermission": "65c50085b42061bebb5152b2",
        "owner": {
            "_id": "64cb61be80375ed9c2088190"
        }
    }
]

Workspace - single

List of single workspace

GET https://api.asters.ai/external/workspaces/:workspaceId

Returns workspace and collaborators.

Path Parameters

Headers

    {
        "timezone": {
            "name": "Europe/Rome",
            "value": "UTC+02:00"
        },
        "deleted": false,
        "_id": "64cb61be80375ed9c2088192",
        "name": "Personal",
        "image": {
            "presignedUrl": "https://asters.s3.eu-central-1.amazonaws.com/64cb61be80375ed9c2088190/undefinedSchermata%202023-10-02%20alle%2014.44.06-1696339461916.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA5OA4V6PRMWDFMS4B%2F20240308%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20240308T145105Z&X-Amz-Expires=86400&X-Amz-Signature=168e5e5b1c8ccd73e1c13a10d2aa93fe1f80c0fccdcc55b45b582b7157acec6b&X-Amz-SignedHeaders=host&response-cache-control=No-cache&response-content-disposition=attachment%3B%20filename%3D%2264cb61be80375ed9c2088190%2FundefinedSchermata%202023-10-02%20alle%2014.44.06-1696339461916.png%22",
            "filename": "64cb61be80375ed9c2088190/undefinedSchermata 2023-10-02 alle 14.44.06-1696339461916.png"
        },
        "default": true,
        "user": "64cb61be80375ed9c2088190",
        "updated_at": "2023-08-03T08:13:50.594Z",
        "created_at": "2023-08-03T08:13:50.594Z",
        "roles": [
            {
                "name": "John Appleseed",
                "description": "undefiened",
                "permissions": [
                    "edit_post",
                    "publish_post",
                    "calendar_show_posts",
                    "link_social_account"
                ],
                "_id": "651c166d7ab11929385e7199"
            }
        ],
        "collaborators": [
            { "_id": "651c16867ab11929385e71dc" }
        ],
        "daylightTime": false,
        "owner": {
            "_id": "64cb61be80375ed9c2088190"
        }
    }

Workspace - collaborators

List of collaborators in a workspace

GET https://api.asters.ai/external/workspaces/:workspaceId/collaborators

Returns all collaborators of a workspace.

Path Parameters

Headers

[ { "_id": "651c16867ab11929385e71dc", "email":"email.user@mail.com" } ]

Workspace - social accounts

List of social accounts in a workspace

GET https://api.asters.ai/external/workspaces/:workspaceId/socials

Returns all social profiles of a workspace.

Path Parameters

Headers

[
    {
        "_id": "65e6eb4240432c736c0c12e8",
        "name": "Test Page",
        "account_id": "104444648547630",
        "picture": "https://scontent-cdg4-1.xx.fbcdn.net/v/t39.30808-1/385698540_618743890458100_614969213646487868_n.jpg?stp=cp0_dst-jpg_p50x50&_nc_cat=102&ccb=1-7&_nc_sid=5f2048&_nc_ohc=Nkd8sknTWLoAX_USpwJ&_nc_ht=scontent-cdg4-1.xx&cb_e2o_trans=q&edm=AGaHXAAEAAAA&oh=00_AfDCmmsLfhEhzg8hS7_QzXtbvFk153INjTR0pvRiVGcOUA&oe=65EE4AF8",
        "provider": "facebook",
        "user": "64cb61be80375ed9c2088190",
        "workspace": "6516a948c2938fe873d4c6e8",
        "profileType": "page",
        "updated_at": "2024-03-07T11:31:45.854Z",
        "created_at": "2024-03-05T09:52:02.391Z",
        "expired": false,
        "__v": 0,
        "deleted": false
    },
    {
        "_id": "65e6f2f840432c736c0c508d",
        "name": "Test Profile",
        "account_id": "17841461210523613",
        "picture": "https://scontent.fflr3-1.fna.fbcdn.net/v/t39.30808-1/430695770_122165486246018107_3615102032536642928_n.jpg?stp=c21.0.50.50a_cp0_dst-jpg_p50x50&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_ohc=7t1ZXwGguTAAX_vB4T3&_nc_ht=scontent.fflr3-1.fna&cb_e2o_trans=q&edm=AGaHXAAEAAAA&oh=00_AfBlph8EIMl2RPWcfEsdmm4CF6jK_SkORY8LJecPMZQC_w&oe=65EF4656",
        "provider": "instagram",
        "user": "64cb61be80375ed9c2088190",
        "workspace": "6516a948c2938fe873d4c6e8",
        "profileType": "business",
        "updated_at": "2024-03-08T11:01:03.865Z",
        "created_at": "2024-03-05T10:24:56.805Z",
        "expired": false,
        "__v": 0,
        "deleted": false
    },
    {
        "_id": "65e707dd50f7baa033fb19dc",
        "name": "Test Profile 2",
        "account_id": "17841448469655739",
        "picture": "https://scontent.fflr3-2.fna.fbcdn.net/v/t39.30808-1/385698540_618743890458100_614969213646487868_n.jpg?stp=cp0_dst-jpg_p50x50&_nc_cat=102&ccb=1-7&_nc_sid=5f2048&_nc_ohc=Nkd8sknTWLoAX81POCf&_nc_ht=scontent.fflr3-2.fna&cb_e2o_trans=q&edm=AGaHXAAEAAAA&oh=00_AfAIUQrok982lk_7qIE2aTsdoY8vDViAq6jesTqs5fUAHg&oe=65F04538",
        "provider": "instagram",
        "user": "64cb61be80375ed9c2088190",
        "workspace": "6516a948c2938fe873d4c6e8",
        "profileType": "business",
        "updated_at": "2024-03-08T11:01:04.360Z",
        "created_at": "2024-03-05T11:54:05.181Z",
        "expired": false,
        "__v": 0,
        "deleted": false
    },
    {
        "_id": "65e7579342fa26b007ab62f1",
        "name": "Test Page 2",
        "account_id": "124176224104127",
        "picture": "https://scontent-cdg4-1.xx.fbcdn.net/v/t39.30808-1/430695770_122165486246018107_3615102032536642928_n.jpg?stp=c21.0.50.50a_cp0_dst-jpg_p50x50&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_ohc=7t1ZXwGguTAAX-Z_uAY&_nc_ht=scontent-cdg4-1.xx&cb_e2o_trans=q&edm=AGaHXAAEAAAA&oh=00_AfBddEdtEP-pGooT71Y4ZQQuGa5X1dhrsEwaMUiQtbei8g&oe=65EF4656",
        "provider": "facebook",
        "user": "64cb61be80375ed9c2088190",
        "workspace": "6516a948c2938fe873d4c6e8",
        "profileType": "page",
        "updated_at": "2024-03-07T11:31:45.843Z",
        "created_at": "2024-03-05T17:34:11.824Z",
        "expired": false,
        "__v": 0,
        "deleted": false
    },
    {
        "_id": "65e99fdc4bd6f2a78a64e78f",
        "name": "Test Page 3",
        "account_id": "270327192823689",
        "picture": "https://scontent-cdg4-2.xx.fbcdn.net/v/t39.30808-1/430810351_122097383156239298_2947924886378433774_n.png?stp=cp0_dst-png_p50x50&_nc_cat=103&ccb=1-7&_nc_sid=5f2048&_nc_ohc=2g5hMvGcWZ8AX8HVxxa&_nc_ht=scontent-cdg4-2.xx&cb_e2o_trans=q&edm=AGaHXAAEAAAA&oh=00_AfDqu4hmLtufqxZ5Il3vJ8iWsDK5e_YGeDJExZ9jzJiBhw&oe=65EE4ED3",
        "provider": "facebook",
        "user": "64cb61be80375ed9c2088190",
        "workspace": "6516a948c2938fe873d4c6e8",
        "profileType": "page",
        "deleted": false,
        "updated_at": "2024-03-07T11:31:45.858Z",
        "created_at": "2024-03-07T11:07:08.296Z",
        "expired": false,
        "__v": 0,
    },
    {
        "_id": "65e99fdc4bd6f2a78a64e7f7",
        "name": "Test Page 4",
        "account_id": "233137933224902",
        "picture": "https://scontent-cdg4-2.xx.fbcdn.net/v/t39.30808-1/430831405_122097577262239203_3484051810721217273_n.png?stp=cp0_dst-png_p50x50&_nc_cat=100&ccb=1-7&_nc_sid=5f2048&_nc_ohc=LPAooHpSDSEAX8R5oHr&_nc_ht=scontent-cdg4-2.xx&cb_e2o_trans=q&edm=AGaHXAAEAAAA&oh=00_AfAAfuRkyQyJP3bLiwCxdkDn3S_JJA4n5AUkJqYAHScjnw&oe=65EF1D3A",
        "provider": "facebook",
        "user": "64cb61be80375ed9c2088190",
        "workspace": "6516a948c2938fe873d4c6e8",
        "profileType": "page",
        "deleted": false,
        "updated_at": "2024-03-07T11:31:45.943Z",
        "created_at": "2024-03-07T11:07:08.836Z",
        "expired": false,
        "__v": 0,
    }
]

Last updated