{ "opencollection": "1.0.0", "info": { "name": "Upwork GraphQL Authentication Messages API", "version": "1.0.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://www.upwork.com/ab/account-security/oauth2/authorize", "accessTokenUrl": "https://www.upwork.com/api/v3/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Messages", "type": "folder" }, "items": [ { "info": { "name": "Upwork Execute GraphQL Query or Mutation", "type": "http" }, "http": { "method": "POST", "url": "https://api.upwork.com/graphql", "body": { "type": "json", "data": "{}" } }, "docs": "Execute a GraphQL query, mutation, or subscription against the Upwork API. All GraphQL operations are sent as POST requests to this endpoint with a JSON body containing the query, optional variables, and optional operation name. Returns JSON with data and optional errors fields." }, { "info": { "name": "Upwork List Messages", "type": "http" }, "http": { "method": "GET", "url": "https://api.upwork.com/api/v3/messages/v3/rooms/:room_id/messages", "params": [ { "name": "room_id", "value": "room-xyz789", "type": "path", "description": "The unique identifier of the messaging room" }, { "name": "paging", "value": "0;20", "type": "query", "description": "Pagination parameters" } ] }, "docs": "Retrieve messages from a contract messaging room. Returns paginated message history ordered by time." }, { "info": { "name": "Upwork Send Message", "type": "http" }, "http": { "method": "POST", "url": "https://api.upwork.com/api/v3/messages/v3/rooms/:room_id/messages", "params": [ { "name": "room_id", "value": "room-xyz789", "type": "path", "description": "The unique identifier of the messaging room" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Send a message to a contract messaging room." } ] } ], "bundled": true }