# Get allow/block rule

## GET /workspaces/{workspaceId}/conversation-allowblock-rules/{allowBlockRuleId}

> Get Allow/Block rule

```json
{"openapi":"3.0.3","info":{"title":"Conversations","version":"v1"},"tags":[{"name":"email_allowblock_rules","description":"Manage Allow/Block rules for your inbox"}],"servers":[{"url":"https://api.bird.com","description":"Production API"}],"security":[{"accessKey":[]}],"components":{"securitySchemes":{"accessKey":{"description":"Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')","scheme":"AccessKey","type":"http"}},"responses":{"AllowBlockRule":{"description":"The Allow/Block rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowBlockRule"}}}},"notFound":{"description":"The resource specified in the URL was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}}},"schemas":{"AllowBlockRule":{"description":"An AllowBlockRule is a rule that allows or blocks a specific value in a specific category.","type":"object","required":["id","workspaceId","category","value","type","createdBy","createdAt","updatedBy","updatedAt"],"properties":{"id":{"type":"string","format":"uuid"},"workspaceId":{"type":"string","format":"uuid"},"category":{"$ref":"#/components/schemas/AllowBlockRuleCategory"},"value":{"type":"string"},"type":{"$ref":"#/components/schemas/AllowBlockRuleType"},"createdBy":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"updatedBy":{"type":"string","format":"uuid"},"updatedAt":{"type":"string","format":"date-time"}}},"AllowBlockRuleCategory":{"description":"The category of the AllowBlockRule.","type":"string","enum":["all","domain","domain_suffix","email"]},"AllowBlockRuleType":{"description":"The type of the AllowBlockRule.","type":"string","enum":["allow","reject","suspend"]},"NotFoundError":{"additionalProperties":false,"properties":{"code":{"type":"string","description":"A unique code that identifies the error. This code can be used to programmatically identify the error.","pattern":"^([A-Z][a-z]*)+$"},"message":{"type":"string","description":"A human-readable message that describes the error."},"details":{"type":"object","description":"Additional details about the error. This object can contain any additional information that may be useful for debugging.","additionalProperties":true}},"required":["code","message"]}}},"paths":{"/workspaces/{workspaceId}/conversation-allowblock-rules/{allowBlockRuleId}":{"get":{"summary":"Get Allow/Block rule","operationId":"getAllowBlockRule","tags":["email_allowblock_rules"],"responses":{"200":{"$ref":"#/components/responses/AllowBlockRule"},"404":{"$ref":"#/components/responses/notFound"}}}}}}
```
