Request : GET /papi/v1/project/[Project id]/message

Function for listing the all conversations inside of a project. Deleted conversations show in the list with the parameter “IsDeleted”: true.

Parameter Parameter Type Mandatory Description
Project Id Path yes Unique project id.
x-auth-token Header yes The authentication token must be provided as an x-auth-token header for every API request.
More information about authentication token.

Response: JSON – Project conversation object(s) as an array.

[
    {
        "Id": "16",
        "ProjectId": "321",
        "Subject": "Hello does this work?",
        "Body": "Hi,<br><br>Just testing this.<br><br>Br.<br>John Average",
        "Creator": {
            "UserId": "123",
            "UserFullName": "John Average"
        },
        "Created": 1642143617,
        "IsDeleted": false
    },
    {
        "Id": "17",
        "ParentId": "16",
        "ProjectId": "321",
        "Body": "Hi John!<br><br>Works Great.<br><br>Br.<br>Mary Mediocre",
        "Creator": {
            "UserId": "3",
            "UserFullName": "Mary Mediocre"
        },
        "Moderator": {
            "UserId": "3",
            "UserFullName": "Mary Mediocre"
        },
        "Created": 1642143694,
        "Modified": 1642143704,
        "IsDeleted": false
    }
]

cURL example

curl --location --request POST 'https://[EMMi instance]/papi/v1/project/[Project id]/message \
--header 'x-auth-token: [Session token]'  

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment