API Docs
Message APIManagement API
Message APIManagement API
xID for Developers
SmartPOST 管理画面
  1. custom policy
  • SmartPOST Management API 概要
  • 用語定義
  • project
    • listProjects
      GET
    • getProject
      GET
    • listImageUrls
      GET
    • listProjectRecipients
      GET
    • listProjectVariables
      GET
  • admin
    • listAdmins
      GET
    • getAdmin
      GET
  • custom policy
    • listCustomPolicies
      GET
    • getCustomPolicy
      GET
  • custom role
    • listCustomRoles
      GET
    • getCustomRole
      GET
  • group
    • listGroups
      GET
    • getGroup
      GET
  • health
    • healthCheck
      GET
  1. custom policy

getCustomPolicy

GET
/v1/custom-policies/{id}
listCustomPoliciesで取得したカスタムポリシーのIDを使用して本エンドポイントにリクエストを送ることで、カスタムポリシーの詳細情報を取得できます。

リクエストパラメータ

Authorization
Headerにパラメータ
Authorization
を追加し、その値にはBasicの後にスペースと、Base64でエンコードされたusername:passwordが連結されます
例:
Authorization: Basic *****************
パスパラメータ

Headerパラメータ

リクエストコードサンプル

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
リクエストリクエストExample
Shell
JavaScript
Java
Swift
curl --location 'https://management-api.smartpost.jp/v1/custom-policies/00000000-0000-0000-0000-102101ec7001' \
--header 'Accept: application/json' \
--header 'Host: management-api.smartpost.jp' \
--header 'User-Agent: Mozilla/5.0 (platform; rv:geckoversion) Gecko/geckotrail Firefox/firefoxversion' \
--header 'Authorization: Basic <encoded-value>'

レスポンス

🟢200Success
application/json
ボディapplication/json

例
{
    "id": "00000000-0000-0000-0000-acc000000001",
    "account_id": "00000000-0000-0000-0000-acc000000001",
    "name": "sample custom policy name",
    "description": "sample description",
    "created_by": "00000000-0000-0000-0000-acc000000001",
    "created_at": 1667899934,
    "policy_setting": {
        "admin": "write",
        "policy": "write",
        "role": "write",
        "group": "write",
        "user": "read",
        "custom_user_name": "read",
        "custom_user_gender": "read",
        "custom_user_dob": "read",
        "custom_user_address": "read",
        "user_status": "write",
        "user_export": "yes",
        "user_custom_id": "read",
        "project": "write",
        "project_approve": "yes",
        "welcome_project_publish": "yes",
        "welcome_project_unpublish": "yes",
        "trail": "yes",
        "recipient": "read",
        "custom_recipient_name": "read",
        "custom_recipient_gender": "read",
        "custom_recipient_dob": "read",
        "custom_recipient_address": "read",
        "activity": "read",
        "policy_and_tos": "yes",
        "template_publish": "yes",
        "template_unpublish": "yes",
        "api_key": "read",
        "set_tester": "read",
        "send_test_message": "read"
    },
    "creator_last_name": "Kurosu",
    "creator_first_name": "Taro",
    "related_roles": [
        {
            "id": "00000000-0000-0000-0000-acc000000001",
            "name": "sample custom role name"
        }
    ],
    "related_groups": [
        {
            "id": "00000000-0000-0000-0000-acc000000001",
            "name": "sample group name"
        }
    ]
}
🟠400Bad Request
🟠401Unauthorized
🟠404Not Found
更新日時 2025-03-27 01:11:41
前へ
listCustomPolicies
次へ
listCustomRoles
Built with