Writerside_libraries Help

Security and safeguarding briefs Page

This will document all the elements of the general assembly security screen.

1. Screen header

The information required for the screen text and the header image can be retrieved so:

Get page information

Getting the page title and the page's featured image requires two steps (2 requests)

  1. Request the page information

    curl -X GET 'https://maforum.ippf.org/wp-json/wp/v2/general-assembly/18774' \ --header 'x-connect-allow: string' \ --header 'Authorization: Bearer token'
    { "id": 18774, "date": "2025-07-01T16:39:46", "date_gmt": "2025-07-01T15:39:46", "guid": { "rendered": "https://maforum.ippf.org/?post_type=general-assembly&#038;p=18774" }, "modified": "2025-08-07T09:36:15", "modified_gmt": "2025-08-07T08:36:15", "slug": "security-and-safeguarding-briefs", "status": "publish", "type": "general-assembly", "link": "https://maforum.ippf.org/general-assembly/security-and-safeguarding-briefs/", "title": { "rendered": "Security and Safeguarding Briefs" }, "content": { "rendered": "\n<p></p>\n\n\n\n<h2 class=\"wp-block-heading\">Code of Conduct</h2>\n\n\n\n<div data-wp-interactive=\"core/file\" class=\"wp-block-file\"><object data-wp-bind--hidden=\"!state.hasPdfPreview\" hidden class=\"wp-block-file__embed\" data=\"https://maforum.ippf.org/wp-content/uploads/2025/07/IPPF-Event-code-of-conduct-GA-2025.pdf\" type=\"application/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of IPPF-Event-code-of-conduct-GA-2025.\"></object><a id=\"wp-block-file--media-bbb74a36-3927-4b61-ba1b-5f08b2fbe7a4\" href=\"https://maforum.ippf.org/wp-content/uploads/2025/07/IPPF-Event-code-of-conduct-GA-2025.pdf\">IPPF-Event-code-of-conduct-GA-2025</a><a href=\"https://maforum.ippf.org/wp-content/uploads/2025/07/IPPF-Event-code-of-conduct-GA-2025.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-bbb74a36-3927-4b61-ba1b-5f08b2fbe7a4\">Download</a></div>\n\n\n\n<h2 class=\"wp-block-heading\"></h2>\n\n\n\n<h2 class=\"wp-block-heading\"></h2>\n", "protected": false }, "featured_media": 10212, "menu_order": 0, "template": "", "class_list": [ "post-18774", "general-assembly", "type-general-assembly", "status-publish", "has-post-thumbnail", "hentry" ], "acf": [], "_links": { "self": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/general-assembly/18774", "targetHints": { "allow": [ "GET", "POST", "PUT", "PATCH", "DELETE" ] } } ], "collection": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/general-assembly" } ], "about": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/types/general-assembly" } ], "wp:featuredmedia": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/media/10212" } ], "wp:attachment": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/media?parent=18774" } ], "curies": [ { "name": "wp", "href": "https://api.w.org/{rel}", "templated": true } ] } }
    Title

    title->rendered

    Header image

    Get the column featured_media and make the media request below.

  2. Request the media info based on information from the page request's response

    To get the featured image, you use the column featured_media which contains the ID of the media item.

    curl -X GET 'https://maforum.ippf.org/wp-json/wp/v2/media/55' \ --header 'x-connect-allow: string' \ --header 'Authorization: Bearer token'
    { "id": 36, "date": "2024-06-03T06:27:27", "date_gmt": "2024-06-03T06:27:27", "guid": { "rendered": "http://ma-forum.staging/wp-content/uploads/2024/06/home-image-opt.jpg" }, "modified": "2024-06-03T06:27:27", "modified_gmt": "2024-06-03T06:27:27", "slug": "home-image-opt", "status": "inherit", "type": "attachment", "link": "https://maforum.ippf.org/ma-forum/home-image-opt/", "title": { "rendered": "home-image-opt" }, "author": 1, "featured_media": 0, "comment_status": "", "ping_status": "closed", "template": "", "meta": { "_acf_changed": false, "inline_featured_image": false }, "class_list": [ "post-36", "attachment", "type-attachment", "status-inherit", "hentry" ], "acf": [], "lang": "en", "translations": { "en": 36, "fr": 9298, "es": 9306, "ar": 9314 }, "pll_sync_post": [], "description": { "rendered": "&lt;p class=\"attachment\"&gt;&lt;a href='https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt.jpg'&gt;&lt;img decoding=\"async\" width=\"300\" height=\"176\" src=\"https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-300x176.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-300x176.jpg 300w, https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-1024x602.jpg 1024w, https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-768x451.jpg 768w, https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-1536x902.jpg 1536w, https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" /&gt;&lt;/a&gt;&lt;/p&gt;\n" }, "caption": { "rendered": "" }, "alt_text": "", "media_type": "image", "mime_type": "image/jpeg", "media_details": { "width": 1920, "height": 1128, "file": "2024/06/home-image-opt.jpg", "filesize": 195319, "sizes": { "medium": { "file": "home-image-opt-300x176.jpg", "width": 300, "height": 176, "filesize": 18839, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-300x176.jpg" }, "large": { "file": "home-image-opt-1024x602.jpg", "width": 1024, "height": 602, "filesize": 134639, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-1024x602.jpg" }, "thumbnail": { "file": "home-image-opt-150x150.jpg", "width": 150, "height": 150, "filesize": 9371, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-150x150.jpg" }, "medium_large": { "file": "home-image-opt-768x451.jpg", "width": 768, "height": 451, "filesize": 85834, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-768x451.jpg" }, "1536x1536": { "file": "home-image-opt-1536x902.jpg", "width": 1536, "height": 902, "filesize": 243107, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-1536x902.jpg" }, "medium-thumb-size": { "file": "home-image-opt-500x500.jpg", "width": 500, "height": 500, "filesize": 63891, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-500x500.jpg" }, "full": { "file": "home-image-opt.jpg", "width": 1920, "height": 1128, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt.jpg" } }, "image_meta": { "aperture": "0", "credit": "", "camera": "", "caption": "", "created_timestamp": "0", "copyright": "", "focal_length": "0", "iso": "0", "shutter_speed": "0", "title": "", "orientation": "0", "keywords": [] } }, "post": 25, "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt.jpg", "_links": { "self": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/media/36", "targetHints": { "allow": [ "GET", "POST", "PUT", "PATCH", "DELETE" ] } } ], "collection": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/media" } ], "about": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/types/attachment" } ], "author": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/users/1" } ], "replies": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/comments?post=36" } ] } }
    Image URL

    Choose what size you want. I think you should go with large, but you check how it all displays. media_details->sizes->large->source_url

2. Page content

Use content->rendered from page request.

30 September 2025